Arlen Cuss
11/9/2007 10:48:00 AM
Hi,
On Fri, 2007-11-09 at 03:21 +0900, Giles Bowkett wrote:
> On 11/8/07, Mikel Lindsaar <raasdnil@gmail.com> 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.