Eigentlich logisch... da hätte ich auch selbst drauf kommen müssen.

Also:

| fak | 
        fak := nil.
        fak := [ :n | 
                n = 1  
              ifTrue: [1]  
              ifFalse: [n * (fak value: n - 1)]].  

fak value: 6

Besten Dank,
Michael

--
View this message in context: 
http://forum.world.st/Warnung-bei-rekursiver-Ausfuhrung-eines-Blocks-tp3897533p3897915.html
Sent from the Deutsch (German) mailing list archive at Nabble.com.

Antwort per Email an