From: Hal Fulton Date: 2006-03-01T10:50:40+09:00 Subject: Re: Subclassing Struct.new Minkoo Seo wrote: > 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. Please explain what you mean. Hal