Use of variables in patterns
Filip Konvička
filip.konvicka.removethisantispamtoken at logis.cz
Thu Mar 9 12:00:10 CET 2006
Hi Anthony,
> 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. There have been many
requests that the compiler should warn about this kind of variable
shadowing....
Cheers,
Filip
More information about the mozart-users
mailing list