Hi -- On Thu, 25 Aug 2005, Hal Fulton wrote: > Mark Volkmann wrote: >> Ah ... thanks for the explanation! Had I been paying attention, I >> would have understood the distinction between attributes and instance >> variables from reading pages 32-33 in Pickaxe 2. >> >> That still leaves the question of why Structs have "members" instead >> of "instance variables" and why OpenStructs have neither. > > Well, Structs are not implemented by using instance variables (well, > they are, but not the way you'd expect). > > If I were doing it, I would implement Structs so that there was a > one-to-one correspondence between members and instance variables. > Then this wouldn't be an issue. What if you wanted to add methods to the class, or one or more instances, that used instance variables in a non-member/attr-like way? It seems arbitrary to decide that Structs can't or shouldn't do that. David -- David A. Black dblack / wobblini.net