Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //In Mask, this is how you would structure your main function.
- //It's similar to C, but even the main() function is of a mask type
- //func takes the return type as its first argument for its construction
- //Here, the : is similar to an open bracket
- func main(argc, argv) -> int:
- //var is the general data type.
- //It is cast automatically to a String data by the compiler,
- //But, it's type is still unknown.
- //For static typing, you would use a mask called "String"
- var text = "Hello World!"
- //By default, print(var) will cast to String
- print(text)
- //of course, we return 0
- return 0
- ;
- //semicolons close the function definition
- func main(argc, argv) -> int:
- var text = "Hello World!"
- print(text)
- return 0
- ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement