[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Implicit variables - should they be reserved keywords?
Darren, you wrote:
> Following a discussion with an engineer who is just starting with e,
> I was wondering why implicit variables (result, it, me etc..) are
> not reserved keywords. Take the following two code examples: ...
The reason they are not keywords is because each is an implicitly
declared var within the scope of its action block. This explains why an
assignment to "result" in a value-returning method does not change the
value of a field named "result" while the same assignment in a method
does.
--
Andrew Piziali, <andy@verisity.com>, +1-972-516-3773
"Even when performance modeling requires a cycle-accurate model early in
the project, an architecture that treats timing as an orthogonal ASPECT
[my emphasis] seems advantageous from a software engineering viewpoint."
-- GreenLight Pivot User, 12/02