[squeak-dev] Thoughts about Cog and "tracing" etc

Bert Freudenberg bert at freudenbergs.de
Thu Jun 25 09:12:29 UTC 2009


Am 25.06.2009 um 10:44 schrieb Igor Stasenko:
> Or, better, replace a 'loop' as a cornerstone of design, with tail- 
> call :
>
> whileTrue: aBlock
>  [ self value ] whileTrue: [ aBlockValue]


You mean

whileTrue: aBlock
	self value ifTrue: [
		aBlock value.
		self whileTrue: aBlock]

- Bert -



More information about the Squeak-dev mailing list