On Jan 5, 1:43 pm, "Edward Feustel" <efeus...@[EMAIL PROTECTED]
> wrote:
> My biggest problem is the semantics of the language(s). If something
fails
> in B,
> A := B may not change the value of A. Also it takes a while to get used
to
> the idea
> that true and fail may "be attached" to values and that they and not
values
> such as 0
> cause various branches of if and while and for to be taken.
>
The best way to get used to that is to realize that the syntax is the
best indicator of the semantics in Icon. In your example B cannot
fail, because it is an identifier and will return the null value if
nothing has been assigned to it, which then gets assigned to A. B()
can also return the null value, or it can fail, but that is because it
is not an identifier, it is a procedure.


|