Friday, April 3, 2009

Back to NUL

Hoolydays ended and programation starts on slowly.
The client/server system is not begun though, I more felt like to finish a bit the "object" system and attributes.
Beside some little corrections, the "operator+" c++ euivalent works now.
It is still trange though, while the "number 5" has a set "operator+" that associate 8 to 3 (it is so the equivalent of a one-argument function)
Operators are "native functions" for numbers, strings and sets and will be overridable (I just have to find a syntax now). With this will come the need not to evaluate every attributes if not needed. I'm thinking for instance to the "length" attribute of a string (also, native "number" : it's not a function for a given string, just a number) : it should make a call to the JS "length" ... but it should make this call only if needed.
I guess the first versions will just call everything and waste precious CPU time ...

No comments:

Post a Comment