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 <brettmcc / amazon.com> writes:
> 
> |For example, the following code:
> |
> |a = 1;
> |class <<a
> |  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 <<a" syntax.
> 
> 							matz.