From: Daniel Berger Date: 2005-09-17T10:34:13+09:00 Subject: Re: proposed attr writer patch --- nobu.nokada@softhome.net wrote: > Hi, > > At Sat, 17 Sep 2005 05:01:16 +0900, > Daniel Berger wrote in [ruby-core:05796]: > > IIRC, this would also fix the issue with "?" and > "!" in struct members > > (but I may be remembering incorrectly). > > > > BTW, Evan Webb has already added this patch to > Sydney. > > It doesn't work. > > $ ./ruby -e 'class X;attr_accessor :foo?; end; > x=X.new; x.foo=1; p x.foo?' > -e:1:in `attr_accessor': invalid attribute name > `foo?' (NameError) > from -e:1 > > And: > > + sprintf(buf, "%s=", name); > > buf and name point same area here, but I'm not sure > if this > behavior is guaranteed. Ah, ok, cool. Any chance of this making it into 1.8.3? Regards, Dan __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com