From: Hal Fulton Date: 2006-02-13T14:44:10+09:00 Subject: Re: Struct creates non-standard classes Robert Klemme wrote: > 2006/2/12, Mark Volkmann :> On 2/12/06, David Vallner wrote:> > D�a Nede�a 12 Febru�r 2006 20:45 Mark Volkmann nap�sal:> > > If Struct is a shorthand way for creating Classes, why don't objects> > > created from those Classes have instance_variables? > >>My issue is that I wanted to think of Struct as an alternate way of> defining a class and that after doing so I could use it like any other> class. > > You can. > Well, what if you want to add a new method to the class? That method should have the right to use the instance variables. But in a Struct there aren't any. Hal