From: nobu.nokada@... Date: 2003-12-02T14:28:12+09:00 Subject: Re: Underpinnings of Method Wrapping Hi, At Tue, 2 Dec 2003 14:21:06 +0900, nobu.nokada@softhome.net wrote: > > BTW does this mean if I redefine Array the literal form will use my new class? > > > > class Array < MyArray > > end > > > > [1,2,3].kind_of?(MyArray) # => true > > No. The interpreter current implementation uses rb_cArray > directly, and redefinition of built-in classes causes crash at > GC. Sorry, built-ins are referred by class_tbl, so it won't cause crash even if you were redefine them. We had a discussion about it once, but I forgot it and was confused a bit. -- Nobu Nakada