Scope Vs Extent

Wikipedia definition:

The scope of a variable describes where in a program’s text, the
variable may be used, while the extent (or lifetime) describes when in
a program’s execution a variable has a value. The scope of a variable
is actually a property of the name of the variable, and the extent is
a property of the variable itself.

Are they defined the same way in Ruby? TIA.

On Jul 23, 2008, at 5:34 PM, [email protected] wrote:

Wikipedia definition:

The scope of a variable describes where in a program’s text, the
variable may be used, while the extent (or lifetime) describes when in
a program’s execution a variable has a value. The scope of a variable
is actually a property of the name of the variable, and the extent is
a property of the variable itself.

Are they defined the same way in Ruby? TIA.

extent = scope

lexical scope = scope

in ‘normal’ ruby parlance.

a @ http://codeforpeople.com/