This post has been edited by WolfCoder: 31 July 2012 - 09:43 AM
49 Replies - 2730 Views - Last Post: 31 July 2012 - 05:54 PM
#46
Re: Program name used to control logic flow
Posted 31 July 2012 - 09:42 AM
I can't read more than one post at a time on any machine or screen, not since the forum got this motif back in.. I forgot when they switched to this new style.
#47
Re: Program name used to control logic flow
Posted 31 July 2012 - 09:44 AM
#48
Re: Program name used to control logic flow
Posted 31 July 2012 - 01:31 PM
Python does this all the time. If a program is executed its internal name is '__main__'. Python developers often make modules execute test code if they are ran as 'main' and if not ran as main they are modules.
http://www.python.or.../peps/pep-0299/
http://www.python.or.../peps/pep-0299/
This post has been edited by stackoverflow: 31 July 2012 - 01:33 PM
#49
Re: Program name used to control logic flow
Posted 31 July 2012 - 04:20 PM
Quote
Putting in a goto and jamming it saved me a lot of time.
And this is why the ladies don't like us nerds. We just don't take our time with them.
#50
Re: Program name used to control logic flow
Posted 31 July 2012 - 05:54 PM
"GOTO Considered Unromantic"
|
|

New Topic/Question





MultiQuote






|