Is Squeak tail recursive?
Paolo Amoroso
amoroso at mclink.it
Fri Jan 29 09:31:02 UTC 1999
On Thu, 28 Jan 1999 10:49:01 -0500, you wrote:
> I believe the answer is no. It can support neither tail nor head resursion.
>
> It is because the current Block implementation in Squeak (i.e. BlockContext)
> is non-reentrant. The reason being the block object contains its own states
[...]
How about other forms of recursion not involving blocks? Is it safe for a
method to invoke itself?
Paolo
--
Paolo Amoroso <amoroso at mclink.it>
More information about the Squeak-dev
mailing list
|