[#863] RDtool-0.5.0 — Toshiro Kuwabara <toshirok@...3.so-net.ne.jp>

Hi,

18 messages 1999/10/23
[#864] Re: RDtool-0.5.0 — matz@... (Yukihiro Matsumoto) 1999/10/26

Hi,

[ruby-talk:00889] Re: local / dynamic variables

From: matz@... (Yukihiro Matsumoto)
Date: 1999-10-30 14:21:14 UTC
List: ruby-talk #889
Hi,

In message "[ruby-talk:00877] local / dynamic variables"
    on 99/10/29, ts <decoux@moulon.inra.fr> writes:

| This is probably a stupid question, but why in a block a variable is not
| always dynamic when this variable is defined between | |  ?

Just because I don't want variable shadowing in the language.
In Ruby, the single identifier works consistently, throughout the
variable scope (i.e class/module block, method body). 

                                                        matz.

In This Thread