"Yves Jaradin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> >
<SNIP>
> >
> The bang is not an outer-scope operator. It is just a way to
> prevent introduction of a new variable. In essence its meaning
> is : "I really want to use the variable with that name, not create
> a new variable hiding it." The most common use of bang is in
> pattern-matching against names:
>
> Secret={NewName}
>
> case Message
> of wellKnown then ...
> [] !Secret then ...
> [] AnythingElse then ...
> end
>
> Without the bang, the second case would always match and
> introduce a variable Secret local to the second clause.
>

I must admit this concept did not quite 'gel' with me despite reading the
relevant section in the documentation, and having it explained once before
on this mailing list.

Thank you for your explanation, Yves. I think I've 'got it' this time
around.

Cheers,

Anthony Borla



_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to