DavidJCobb

Joined 8 March 2022
468 bytes added ,  16:18, 10 August 2014
→‎Scratchpad: noting that import sucks
imported>DavidJCobb
imported>DavidJCobb
(→‎Scratchpad: noting that import sucks)
Line 2: Line 2:


= Scratchpad =
= Scratchpad =
*[[Script File Structure#Import|Import]] is unreliable, and I don't know what makes it break. It works in some cases, but in others, it completely fails to import global functions from the target file.
**It's consistent: if it doesn't work for a file, then it will probably never work for that file (barring massive changes).
**You can work around this by referencing all functions in the script to be imported as methods, e.g. ''ScriptToBeImported.FunctionName()''.


== Progress made ==
== Progress made ==
Anonymous user