"Arie Kusuma Atmaja" <[EMAIL PROTECTED]> writes:

> On 11/04/2008, Yohanes Santoso <[EMAIL PROTECTED]> wrote:
>
>> > 12:56:01 PM Rie!: it's just like the stupid param variable is still
>>  > available outside of the block/yield
>>
>>
>> Contoh?
>
> no worries, nome, that was part of emotional talk from deeeep beneath
> my hungry potbelly -_- that's been fixed since "centuries" ago with
> ruby19.
>
> ruby-1.8.6
> ---------------
>
> #!/usr/bin/env ruby
>
> e = 3
> puts e
> ("01".."12").map { |e| "ariekeren #{e}" }
> puts e
>
> output
> ---------
>
> 3
> 12
>
> ruby19
> ----------
>
> #!/usr/bin/env ruby19
>
> e = 3
> puts e
> ("01".."12").map { |e| "ariekeren #{e}" }
> puts e
>
> output
> ---------
>
> 3
> 3

My first reaction was ``What!! They broke that in 1.9?``. Then I
remembered that 1.9 is more of a test bed for new features in 2.0,
than an intended end-user release.

YS


Kirim email ke