From: Freak Guard Date: 2009-11-19T23:19:39+09:00 Subject: Re: dynamic array? > So reopen, extend, or subclass Array to get the desired behavior. > What's the problem? class DefaultArray < Array attr_accessor :default_value def initialize super @default_value = nil end def [](idx) super || @default_value end end ... and writing all the iterators I need which will be dead slow I assume :/ Greetings FreakGuard -- Posted via http://www.ruby-forum.com/.