Anonymous user
Modulinos: Difference between revisions
m
update URL
m (Use community-approved name 'Modulino' to describe the behavior of code in this article) |
m (update URL) |
||
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''].
Examples from
Sometimes getting the [[ScriptName]] is required in order to determine when to run main().
|