My class is defined as,
class Memory < Array
and I need to override the []= method.
I tried something like,
def []=(address, value)
self[address] = Word.new(value)
end
which causes an infinite loop of course: 'stack level too deep'.
How to do it right?
--
Posted via http://www.ruby-forum.com/.