Printing Crashes Rev in OSX

Chipp Walters chipp at
Wed Feb 2 19:58:08 EST 2005


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
case "sally"
    put "hello Sally" after tStr
end switch

How would you it in ADA?



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;

More information about the use-livecode mailing list