Printing Crashes Rev in OSX

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


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;


More information about the use-livecode mailing list