Difference between pages "Using" and "Talk:Import"
(Difference between pages)
Jump to navigation
Jump to search
imported>Heeheehee (New page.) |
imported>Bale |
||
Line 1: | Line 1: | ||
− | + | So here's my two questions: | |
− | |||
− | |||
− | + | * From my experience, nested imports and repeated imports do NOT cause function or variable collisions. Is this correct for all cases? | |
− | + | * The <code>main()</code> function from any imported script is ignored. Not sure how it works for a main-less top level script, though. | |
− | [[ | + | --[[User:PhilmASTErpLus|PhilmASTErpLus]] 17:36, 28 June 2010 (UTC) |
+ | |||
+ | You're correct about nested imports. I attempted to answer your second question in my edit. Commands not in functions ARE executed in imported scripts. --[[User:Bale|Bale]] 20:43, 28 June 2010 (UTC) |
Revision as of 20:43, 28 June 2010
So here's my two questions:
- From my experience, nested imports and repeated imports do NOT cause function or variable collisions. Is this correct for all cases?
- The
main()
function from any imported script is ignored. Not sure how it works for a main-less top level script, though.
--PhilmASTErpLus 17:36, 28 June 2010 (UTC)
You're correct about nested imports. I attempted to answer your second question in my edit. Commands not in functions ARE executed in imported scripts. --Bale 20:43, 28 June 2010 (UTC)