From: nobu.nokada@... Date: 2002-01-26T10:50:02+09:00 Subject: Re: Serious Array Bug in Ruby 1.6.6? Hi, At Sat, 26 Jan 2002 07:32:19 +0900, William Djaja Tjokroaminata wrote: > Yes, the List class is exactly what I want. I don't see why it is so > inefficient, because the opposite is I still don't see the use of an array > of pointers to the same object. If it is so inefficient, why just don't > provide it to the user: Array.new (n, obj) only works for obj of FixNum, > True, Nil, etc. On the other hand, if it is allowed for obj to be a Hash, > then why not create multiple hashes instead of just a single hash. The inefficiency comes from the operation itself, regardless whether written in C or Ruby. # BTW, haven't you heard about flyweight? -- Nobu Nakada