From: Paul Brannan Date: 2003-02-19T05:19:15+09:00 Subject: Re: How to test for existence of instance variable? On Wed, Feb 19, 2003 at 02:08:07AM +0900, Yukihiro Matsumoto wrote: > In message "Re: How to test for existence of instance variable?" > on 03/02/19, Paul Brannan writes: > |Why should this be fixed? The warning looks reasonable to me. > > Because it's non intuitive. There's no logical relationship between > an attribute reader "foo" and an instance variable "@foo" to the > users. Creating an attribute reader and not initializing the attribute (either with @foo= or with self.foo=) is a bug. The user should never see this warning except for buggy code. Paul