Is there an include or equivalent in chuck (Still thinking about how to modulize code)? -- peace, love & harmony Atte http://www.atte.dk
Philip Davidson wrote:
yes, but it's in development / testing phases.
Ok, I'll hold my breath then. Any idea how long? -- peace, love & harmony Atte http://www.atte.dk
"PD" == Philip Davidson
writes:
PD> yes, but it's in development / testing phases. Ah, I should take a look at that, then ... Is it a "simple lexical" include (like with the c preprocessor), or is it in a higher level, (what I'd like to call require/provide, like in elisp), so that the included code only needs to be compiled once? Basically, I'd like "require foo" to check (in a hash table) if foo allready is provided, and in that case just return. If foo isn't provided, it could search the load path for "foo.ck", and compile that if found. This would be very simple given a global namespace for functions and classes (so that the classes in foo is available for all shreds when foo is required in one). Otherwise require would also have to include the foo namespace into the current namespace. -- Rasmus Kaj --+-- rasmus@kaj.se --+-- http://www.stacken.kth.se/~kaj/ Det är alldeles för mycket sport inom idrotten
participants (3)
-
Atte André Jensen
-
Philip Davidson
-
Rasmus Kaj