From: "NAKAMURA, Hiroshi" Date: 2002-12-26T19:14:10+09:00 Subject: Re: Struct Question Hi, Jonas, > From: "Jonas Hoffmann" > Sent: Thursday, December 26, 2002 6:58 PM > i have a question about Structs , in the Book 'Ruby in a Nutshell' is written > => > S = Struct::new(:foo, :bar) > s = S::new(1,2) > s => # > > but > > i receive with my Code Ruby v1.6.8 => > > tem = Struct::new(:foo, :bar) > meinstruct = tem::new(0,8) > puts meinstruct > > => #<#> > > is this a change in a Rubyversion ? Or did i read the book wrongly ? No. Assignment to a constant is a key. In your code, an object which 'tem' refers is still an anonymous class. Regards, // NaHi