Re: Subclassing Struct.new
by Minkoo Seo other posts by this author
Feb 28 2006 11:28PM messages near this date
Re: Subclassing Struct.new
|
Re: Subclassing Struct.new
Yukihiro Matsumoto wrote:
> Yes, and in Ruby2.0, this will be changed to "if you see an assignment
> to a bare name, that name means a variable in the current scope", so
> that
Please englighten me:
> | def bar
> | n = 3
> | n # variable - make sense to me.
> | end
This make sense, but
> | def baz
> | n # variable - Do we really need this uninitialized variable access?
> | n = 3
> | n
> | end
Thank you for the explanation.
Sincerely,
Minkoo Seo
Thread:
Minkoo Seo
Chiaro Scuro
Minkoo Seo
Yukihiro Matsumoto
Mark Wilden
Markus Werner
Chiaro Scuro
Minkoo Seo
Minkoo Seo
Hal Fulton
mental
Ross Bamford
mental
Ross Bamford
Chiaro Scuro
Ross Bamford
Chiaro Scuro
Minkoo Seo
Chiaro Scuro
mental
Chiaro Scuro
mental
Yukihiro Matsumoto
Caleb Clausen
Yukihiro Matsumoto
Caleb Clausen
MenTaLguY
Yukihiro Matsumoto
gwtmp01
Chiaro Scuro
mental
Chiaro Scuro
mental
Logan Capaldo
Pit Capitain
|