From: Alex Young Date: 2006-06-03T18:08:02+09:00 Subject: Re: Another Look at Namespaces transfire@gmail.com wrote: > Had a "light-bulb" over head moment and threw this together as a simple > demonstration. It's prerry neat. THough is stffes from a few problems > of course 1) it probaby not very efficient 2) literal notions don't > work and 3) it's not dynamic. #3 could be solved if there were a way to > capture const_missing relative to a specific module/class (no > inheritance chain). #2 requires Ruby itself to look for, say String > class relatively instad of absolutely (potentially dnagerous?) of > course #1 is just one of this things ;-) > 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? -- Alex