From: Arlen Christian Mart Cuss Date: 2007-11-09T19:47:53+09:00 Subject: Re: how to delete Array Hi, On Fri, 2007-11-09 at 03:21 +0900, Giles Bowkett wrote: > On 11/8/07, Mikel Lindsaar wrote: > > heh... "...and thus the gates of hell were thrown open..." > > > > Gotta love that about Ruby... you can even kiss a basic class like > > Array goodbye with a single line of code. > > > > I love ruby. > > >> Object.module_eval{ remove_const :Array } > => Array > /opt/local/lib/ruby/1.8/irb/slex.rb:72:in `match': uninitialized > constant IRB::SLex::Array (NameError) > > You could probably alias that to :implode. > That happens because irb then tries to use an Array internally and it no longer exists. In normal Ruby interpreted code, it'll work fine so far as you use no arrays.