From: Bulat Ziganshin Date: 2002-12-26T19:15:31+09:00 Subject: Re: Struct Question Hello Jonas, Thursday, December 26, 2002, 12:58:16 PM, you wrote: JH> i have a question about Structs , in the Book 'Ruby in a Nutshell' is written =>> JH> S = Struct::new(:foo, :bar) JH> s = S::new(1,2) JH> s => # JH> but JH> i receive with my Code Ruby v1.6.8 => JH> tem = Struct::new(:foo, :bar) JH> meinstruct = tem::new(0,8) JH> puts meinstruct =>> #<#> JH> is this a change in a Rubyversion ? Or did i read the book wrongly ? 1. use Capitalized name for class (Tem instead of tem) 2. book shows result of "p s", not "puts s" Tem = Struct::new(:foo, :bar) meinstruct = Tem::new(0,8) p meinstruct will work fine -- Best regards, Bulat mailto:bulatz@integ.ru