[ABE.pm] Ruby Q
faber at linuxnj.com
Tue Apr 18 19:44:38 PDT 2006
On 17/04/06 17:20 -0400, Ricardo SIGNES wrote:
> * Faber Fedor <faber at linuxnj.com> [2006-04-17T17:00:49]
> > On 16/04/06 22:11 -0400, Ricardo SIGNES wrote:
> > > Ruby's scoping is more sane than Python's, but
> > > you can still shoot your foot more easily than in Perl,
> > Hmm, I assumed the scoping would be Perl-like. I'd better read up on
> > that.
> The unPerl-like-ness-itude of it is that "a variable's scope begins at the
> point where its symbol is assigned to" rather than "a variable's scope begins
> when it is declared to begin."
Well, that makes sense if you can't declare the variable, i.e. the
variable is declared once it is assigned. What am I missing?
Linux New Jersey, Inc.
More information about the ABE-pm