184
edits
|  (→Arrays) | Tomas Kirnak (talk | contribs)  | ||
| Line 76: | Line 76: | ||
| return is another built-in operator which exits the function and sets it's return value. | return is another built-in operator which exits the function and sets it's return value. | ||
| = Script entry point = | |||
| NXSL handles script entry in 2 ways:<br> | |||
| * Explicit main() function | |||
| * Implicit $main() fucntion | |||
| If an explicitelly defined main() exists, it will be called. | |||
| If an explicit main() doesnt exist, an implicit $main() fucntion will be created by the script interpreter and the script will enter at the $main() function.<br> | |||
| The $main() fucntion is constructed from code that is not a part of any other functions. | |||
edits