----- Original Message -----
From: "Filip Konvička" <[EMAIL PROTECTED]>
Newsgroups: mozart-oz.users
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 09, 2006 10:00 PM
Subject: Re: Use of variables in patterns
Filip,
>
> > LINE = {FILE getS($)}
> > ...
> > case LINE of false then
> > ...
> > elseof Delimiter|_
> > ...
> > else
> > ...
>
> try this instead:
>
> elseof !Delimiter|_
>
> Your code introduces a new local variable Delimiter
> in the pattern. If you use the exclamation mark, you
> prevent this.
>
Thank you so much, that certainly remedied the problm :) ! It's been a few
months since I last used Oz and still have much to learn.
>
> There have been many requests that the compiler should
> warn about this kind of variable shadowing....
>
Maybe Oz 1.3.2 will offer this particular improvement ?
Cheers,
Anthony Borla
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users