Newbie question

Bert Freudenberg bert at freudenbergs.de
Mon Jul 23 14:27:07 UTC 2007


On Jul 23, 2007, at 16:07 , Richard Eng wrote:

> I want to do something like...
>
> #('some text 1'  'some text 2'  'some text 3'  'some text 4')
> with: "a corresponding list of classes, say, {class1  class2    
> class3  class4}"
> do:
>     [:each1 :each2 |
>     "do something with <each1 text> and <each2 class> pair"]
>
>
> No matter how I try to code the #with: part, I keep getting thrown  
> into debug. How do you specify a collection of classes for the  
> above example?

{...} is a list of expressions separated by dots:

{ Class1. Class2. 3+4. 12 at 13. 5 class. Zork froble: 7 with: 42 }


- Bert -





More information about the Squeak-dev mailing list