Frank,

One of the nice parts of having a break in your switch statement is so that you can 'preprocess' stuff in-line. For instance,

switch tName
case "Boss"
   put "Yo, Boss, fyi stuff I'm sending out..." &cr into tStr
case "john"
   put "Dear John" after tStr
   break
case "sally"
   put "hello Sally" after tStr
   break
end switch

How would you it in ADA?

best,

Chipp

Frank D. Engel, Jr. wrote:

matching cases like this. Pascal, Ada, etc. have the superior syntax; in Ada for example:

case whatever is
    when 1 ==> do this;
    when 2 ==> do this;
    when 3 | 4 ==> do this;
    when others ==> do this;
end case;
_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to