Modulinos: Difference between revisions

m
Use community-approved name 'Modulino' to describe the behavior of code in this article
m (Mcandre moved page Scripted main to Modulinos: Use community accepted name for this article's content. "Modulinos" is still obscure, but less obscure than my goofy "scripted main" name.)
m (Use community-approved name 'Modulino' to describe the behavior of code in this article)
Line 1:
{{draft task|Basic language learning}}
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;. theA featurescript canthat bebehaves calledthis ''scriptedway main''is called ora [http://www.slideshare.net/brian_d_foy/advanced-modulinos ''modulino''].
 
Examples from [https://github.com/mcandre/scriptedmain GitHub].
Line 6:
Sometimes getting the [[ScriptName]] is required in order to determine when to run main().
 
: ''This is still a draft task, and the current task description has caused mega confusion. See '''[[Talk:Scripted MainModulinos]]''' for numerous attempts to understand the task and to rewrite the task description.''
 
: '''The task [[Executable library]] is written to replace this task.''' ''This task's future is in doubt as its aims are not clear enough.''
Anonymous user