From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-04-09T19:38:58+09:00 Subject: Re: Array.new returns nil On Wed, 09 Apr 2003 03:23:46 +0000, Han Holl wrote: > > class Awkstack < Array > @@sharedtext = nil > attr_reader :lastrub > > def initialize(left) > @left = left > @CurrentDictStack = Array.new > if ! @CurrentDictStack > count = 0 > ObjectSpace.each_object { count += 1 } > debug "#{count} objects" > ObjectSpace.garbage_collect > sleep 5 > count = 0 > ObjectSpace.each_object { count += 1 } > debug "#{count} objects" > @CurrentDictStack = Array.new > exit unless @CurrentDictStack > end > debug "init: #{object_id} #{@CurrentDictStack.object_id}" > end > # end-of-code I see you are inheiriting from Array, but you don't call super. Aren't you suppose to call super here ??? -- Simon Strandgaard