@rhino freak
right click > new > text file. rename it (press f2 when it's selected) to id.chai.
if you can't see the ".txt" extension. go to folder options (press alt when you are in an explorer window > tools > folder options), in the view tab, uncheck the box that says "hide extensions for known file types".
@topic:
global variables would really be nice, though if it doesn't work, i'll probably figure out a way to just have function(self, target, functionArray) (probably rename that to something shorter) and i'll post that up
edit:
don't worry, found a way around it. now i can just pass in self, target, F (functions), V (vars) to every function =D. wonder what the overhead would be like since there'll be so many map accesses
CHAI_V1_0-Code:
{
clr();
var fn1 = fun(FN) {
print("fn1");
var f2 = FN["fn2"]; f2(FN);
}
var fn2 = fun(FN) {
print("fn2");
var f = FN["fn3"]; f(FN);
}
var fn3 = fun(FN) {
print("fn3");
}
var FN = ["fn1":fn1, "fn2":fn2, "fn3":fn3];
var f = FN["fn1"]; f(FN); // because FN["fn1"]() doesn't work
return 1;
}
|
Azriel~