David Haley said: It requires all user functions to be written in this special way as well, which is unfortunate if the goal is to provide an easy syntax.
Not really. External functions can be inserted from the outside just like the formula definitions on the inside, and they can be accessed on the inside like any other formula.
David Haley said: Also, the whole idea of using a metatable trick is rather dirty in the first place in that it lets uninitialized or incorrectly named variables slip in and seem initialized, but, well, that's kind of the way it goes given the constraints.
Given the constraints, yes, this seems like the best way to go.
David Haley said:
Quote: Again, within the context of the formula script, nothing actually is evaluated.
I realize that you're using your vocabulary somewhat loosely, but it's not at all correct to say that "nothing" is evaluated: of course the script is being evaluated.
No, you're right. But "a = b + c" doesn't evaluate a and b, but hangs on to them for later use. Basically late evaluation. |