From: Siep Korteling Date: 2008-02-16T08:52:31+09:00 Subject: Re: Which data-type can I use for this task? Robert Klemme wrote: >(...)(probably using a constant for the Struct and not a local > variable because Struct.new really defines a new class). > > Cheers > > robert I didn't know this. I never noticed it, but all examples I used to learn from do indeed use Constants. row=Struct.new(:street,:house) d=[] d<# A Hmm. "A" is a full blown Class (as Robert wrote), and "a" is reference to an anonimous Class, provided by Ruby to aid clumsy programmers? I have probably some cleaning up to do tomorrow. Thank you, Siep -- Posted via http://www.ruby-forum.com/.