From: Brett McCormick Date: 2002-01-17T09:44:34+09:00 Subject: Re: ruby docs (and weird error) Does that mean you can't create a virtual class for that type, and only for others? That seems a little strange. On Thursday, 17 January 2002, at 09:16:39, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: ruby docs (and weird error)" > on 02/01/17, Brett McCormick writes: > > |For example, the following code: > | > |a = 1; > |class < | def +@(b) > | puts "test" > | end > |end > |puts(a.+(2)) > | > |yeilds this error > | > |-:2: no virtual class for Fixnum (TypeError) > | > |any ideas why? > > Because there's "no virtual class for Fixnums". ;-) > > "virtual class" means what you define by "class < > matz.