[#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:00879] local / dynamic variables

From: Clemens Hintze <c.hintze@...>
Date: 1999-10-29 20:49:07 UTC
List: ruby-talk #879
ts writes:
> 
> 
>  Hi,

Hi too,

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

This, I don't know for sure, but I assume, that the variables between
| | are not local ones, but denote that these ones are used to serve
as block parameters!

Every variable created within a block, is local to the block; means
not known outside. If the variable between | | is created in the
block, it serves as parameter *and* is local to it!

So, I guess, | | is not a sign for locallity. Only for parameter denoting.

[...]

> 
> Guy Decoux
> 

\cle

-- 
Clemens Hintze  mailto: c.hintze@gmx.net

In This Thread