From: Ondrej Bilka Date: 2009-02-25T16:21:46+09:00 Subject: [ruby-core:22454] Re: YASNP (Yet Another Selector Namespace Proposal) On Wed, Feb 25, 2009 at 01:12:03AM +0100, Charles Oliver Nutter wrote: > Here's a new mock-up of this behavior in JRuby (without making parser > modifications that would certainly clean it up more): > > {{ > module Foo > module Bar > def to_s > puts 'inside namespace: ' + to_s > 'blah' > end > end > end > > using Foo::Bar => String > > puts 'hello'.to_s > puts 1.to_s > > #output: > > inside namespace: hello This code should output inside namespace: inside namespace: inside namespace: inside namespace: inside namespace: inside namespace: ... > blah > 1 > }} > -- boss forgot system password