s***@engmail.uwaterloo.ca
2004-07-13 16:00:03 UTC
In the SL spec, for eval it says:
Sometimes it is useful to evaluate an expression but do nothing with its
result. In particular, some procedures are executed solely for their side
effects, not for their return value. This can be done with the eval statement,
which consists of the keyword eval followed by an expression. Execution of an
evaluation statement consists of evaluating the expression.
It seems like we dont need to generate any action code for this, as it does
not alter the value of any variable, neither is the result used (eg, not even
printed to console).
Could we get some clarification on what eval is to do, and please correct me
if Im wrong in my thinking of what evalstmt does.
Thanx,
SJ
----------------------------------------
This mail sent through www.mywaterloo.ca
Sometimes it is useful to evaluate an expression but do nothing with its
result. In particular, some procedures are executed solely for their side
effects, not for their return value. This can be done with the eval statement,
which consists of the keyword eval followed by an expression. Execution of an
evaluation statement consists of evaluating the expression.
It seems like we dont need to generate any action code for this, as it does
not alter the value of any variable, neither is the result used (eg, not even
printed to console).
Could we get some clarification on what eval is to do, and please correct me
if Im wrong in my thinking of what evalstmt does.
Thanx,
SJ
----------------------------------------
This mail sent through www.mywaterloo.ca