Talk:Import

From Kolmafia
Jump to navigation Jump to search

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)

I know a couple of different formats are acceptable (quotes, less-than & greater-than signs), but I don't recall the entire list, or what the other specifics are. If anyone knows, this info would be helpful. --StDoodle (#1059825) 14:40, 29 June 2010 (UTC)

  • It's the same as notify. In addition to the two you mention, you can leave off delimiters and end it with a semi-colon, but I believe that only works if there are no spaces in the file name.