On 2004-05-27, Alan Chen <aero6dof / yahoo.com> wrote: > I could be wrong, but I think you actually want: > class X < Struct.new(:foo,:bar) > def initialize; end > end You're right. However it should be written class X < Struct.new("X", :foo, :bar) or something like that. Like this you could get around the warnings Ruby issues when you redefine the class: (irb):6: warning: already initialized constant X > Or are you trying to create a new class X which can build new classes like > struct? No, thank you Alan. That's what I searched. I misunderstood Struct a bit |: Bye, phil