OK, a little experimenting with the existing formula parser/interpreter yields these results (in case you were wondering): In article <E1uRvl7-00000008wkJ-0Nkg@shell.xmission.com>, Richard <legalize@xmission.com> writes:
1. Can an assignment operator be used in a sub-expression?
Nope. It can only be used in an assignment statement.
2. Do the logical operators && and || have "short-circuit" behavior like they do in C/C++?
No, they do not. Both arguments to && and || are computed before the operator is evaluated. Note: this testing was done with the 'C' code for type=formula, not against the DOS assembly implementation, which may be different. I think it would be safe to lift restriction 1 with no loss in backwards compatibility. For #2, there can be no side-effects to the arguments to && or ||, because restriction 1 is in effect. So the only consequence is that things might execute faster with shortcut behavior were implemented. For Iterated Dynamics, I've clarified these semantics in the documentation for 1.3, which releases this weekend :). -- Richard -- "The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline> The Terminals Wiki <http://terminals-wiki.org> The Computer Graphics Museum <http://ComputerGraphicsMuseum.org> Legalize Adulthood! (my blog) <http://LegalizeAdulthood.wordpress.com>