David Hopwood writes:
 > Bryan Smith wrote:
 > > %%%%
 > > Re-writing as follows may make things clearer...
 > > 
 > > local X in
 > >   case X of 3 then {Browse X} end
 > >   case 3 of X1 then {Browse X1} end
 > > % or perhaps
 > >   case 3 of !X then {Browse X} end
 > > end
 > > 
 > > local A
 > >   proc {Pair X Y}
 > >      case X of Y1 then {Browse X#Y#Y1} end
 > >   end
 > > in
 > >   {Pair 3 A}
 > >   {Pair A 3}
 > > end
 > 
 > A warning about variable shadowing would have helped in these examples.
 > It is quite rare for shadowing to be intended.
 > 

Good idea,  I have added PR#1707: 

   http://www.mozart-oz.org/cgi-bin/oz-bugs/incoming?id=1707

Any volunteers to implement?

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

Reply via email to