[Squeak-ev] Re: "Warnung" bei rekursiver Ausführung eines Blocks

Michael Paap mprivat at mpaap.de
Mit Okt 12 13:11:33 UTC 2011


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.