Advertisement
Guest User

Untitled

a guest
May 6th, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. //In Mask, this is how you would structure your main function.
  2. //It's similar to C, but even the main() function is of a mask type
  3. //func takes the return type as its first argument for its construction
  4.  
  5.  
  6. //Here, the : is similar to an open bracket
  7. func main(argc, argv) -> int:
  8.  
  9. //var is the general data type.
  10. //It is cast automatically to a String data by the compiler,
  11. //But, it's type is still unknown.
  12. //For static typing, you would use a mask called "String"
  13. var text = "Hello World!"
  14.  
  15. //By default, print(var) will cast to String
  16. print(text)
  17.  
  18. //of course, we return 0
  19. return 0
  20. ;
  21. //semicolons close the function definition
  22.  
  23.  
  24. func main(argc, argv) -> int:
  25. var text = "Hello World!"
  26. print(text)
  27. return 0
  28. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement