SelectCase
Lic. Edgar J. De Cleene
edgardec2001 at yahoo.com.ar
Thu Jan 5 09:34:02 UTC 2006
I try to avoid using case statements , by I never could found how I could do
, with a dictionary, a following Pascal equivalent
- case variable of
0: begin (* executes for 0 value *)
end;
1, 3: begin * executes for 1 and 3 value *)
end;
4: begin * executes for 4 value *)
end;
5..9: begin * executes for all values between 5 and 9 *)
end;
otherwise (* executes for any different value *)
end;
Thanks for this thread and wait HOW TO in Squeak.
Edgar
___________________________________________________________
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar
More information about the Squeak-dev
mailing list
|