Re: Subclassing Struct.new
by Minkoo Seo other posts by this author
Feb 28 2006 4:03AM messages near this date
Re: Subclassing Struct.new
|
Re: Subclassing Struct.new
chiaro scuro wrote:
> However, when you use it on the left handside you must
> prefix with self, otherwise ruby thinks it is a variable n, rather
> than a call to the attribute writer 'n='.
It is strange because
n=1 is fine, but
n -= 1 is not.
> I am not sure if this is supposed to be a bug.. it's certainly a
> surprising behaviour.
Counter intuitive, at the very least. I really want this behavior to be
fixed.
Best,
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
|