Hi Costas,
This the issue of true closures:
As far as I know Dolphin doesn't implement block with local variables (but
reuses the block context). VW and VA do have true block closures, though.
A search with Ian's news browser on "recursive blocks" or "true closures"
may reveal what was posted here before.
All the best,
RiNo
[hidden email]
"Costas Menico" <
[hidden email]> wrote in message
news:
[hidden email]...
> Hi,
>
> The output should have printed the values for 'i' backwards. Instead
> it prints 0s for the following code.
>
> recurseblock:=[ :i |
> i > 0 ifTrue: [ recurseblock value: ( i - 1)].
> Transcript show: i printString; cr
> ].
>
> recurseblock value: 4.
>
> It seems Dolphin does not preserve the block parameters in a recursive
> situation, Is this the way Dolphin behaves or is it a bug? What do
> other Smalltalks do? (Squeak doesn't even allow this)
>
> Thanks
>
> Costas
>