From: dblack@... Date: 2007-01-01T06:05:21+09:00 Subject: Re: Little Things Hi -- On Mon, 1 Jan 2007, Devin Mullins wrote: > Yukihiro Matsumoto wrote: >> |* Oh, and lets not forget the forever arguable method name for (class >> |<< self; self; end). But please give us something concise. >> >> Yes, the name is the biggest obstacle now. > I take it you don't like meta_class, the most often proposed name for it. How > about virtual_class, or singleton_class, or both? > > irb(main):001:0> a=5; def a.foo; end > TypeError: can't define singleton method "foo" for Fixnum > from (irb):1 > irb(main):002:0> a=""; class Foo < (class << a; self end); end > TypeError: can't make subclass of virtual class > from (irb):2 > > :) > > Devin > (Sorry, I don't know what's already been proposed. Shame on me for not > researching it...) Just about every word in the English language, and a couple in German, has been proposed :-) David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)