From: Alex Young Date: 2006-06-05T04:54:39+09:00 Subject: Re: Another Look at SELECTOR NAMESPACES transfire@gmail.com wrote: > Alex Young wrote: > >> When you say "literals don't work", what do you mean? >> >> I get this: >> >> irb(main):048:0> x.show >> #=> [X, X::Kernel, Object, Kernel] >> #=> "Hello" >> #=> "Hello!!!!!" >> => nil >> >> What are you expecting? > > Notice that when you create a string via String.new you get the > exlamation marks. I wouldn't expect to in any case without the .upcase call... Did you mean this instead? def show p self.class.ancestors p "Hello".upcase # literals don't work p String.new("Hello").upcase end -- Alex