Jan. 19, 2013
2:38 a.m.
gerard wrote
Hi.
Excuse me for my poor english.
I need, for recursive requirements, call a block inside the same block. That's possible on Smalltalk?
For example:
"fibonacci function" [:fnc :n1 :n2 :limit :numbers | numbers add: n1. (n2 < limit) ifTrue: [ fnc valueWithArguments: {fnc . n2 . (n1 + n2) . limit . numbers}. numbers ]].
The objetive is use that block without the :fnc parameter.
Regards
-- View this message in context: http://forum.world.st/Fwd-Call-a-block-inside-same-block-for-recursive-requi... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.