Modulinos: Difference between revisions
Content added Content deleted
m (Use community-approved name 'Modulino' to describe the behavior of code in this article) |
m (update URL) |
||
Line 2: | Line 2: | ||
It is useful to be able to execute a main() function only when a program is run directly. This is a central feature in programming scripts. A script that behaves this way is called a [http://www.slideshare.net/brian_d_foy/advanced-modulinos ''modulino'']. |
It is useful to be able to execute a main() function only when a program is run directly. This is a central feature in programming scripts. A script that behaves this way is called a [http://www.slideshare.net/brian_d_foy/advanced-modulinos ''modulino'']. |
||
Examples from |
Examples from https://github.com/mcandre/modulinos |
||
Sometimes getting the [[ScriptName]] is required in order to determine when to run main(). |
Sometimes getting the [[ScriptName]] is required in order to determine when to run main(). |