Dynamic inclusion
- Posted by Andy Drummond <andy at kestreltele.com> Nov 22, 2004
- 518 views
Juergen suggested the possibility of including intermediate language files as an alternative to including source files. It would be good, I think, if the interpreter, which generates the IL files, could check to see if an included source file already has a compiled IL file available, and use that instead. In the same way that a lot of C/C++ compilers check first to see if an included file has a later object file before re-compiling. It would save a lot of time with files like Win32Lib when you are developing a new program and doing frequent runs. On my home P3 500MHz machine it takes some 10-15 seconds to recompile Win32Lib each time, which is not nice. Yeah, yeah, I could fork out for a new PC, but that's not a sensible answer. Another "feature" which Rob may consider - can the object() "function" which always returns True, return False if the object has not been initialised? It would be useful to have variables inside a function which I can initialise on first execution rather than either having them global (and doing it on startup) or having some other way of detecting the first call to the function to do the initialization. Andy Drummond