From: itsme213 Date: 2005-01-06T13:56:30+09:00 Subject: Re: Seeking info on keyword parameters "Michael Neumann" wrote in message news:41DCA867.9040808@ntecs.de... > itsme213 wrote: > > We need a better syntax to indicate which namespace. Something like: > > x.send myns::move other_args # :: resolves to a SelectorSymbol > > or > > x.send myns:.move other_args # :. resolves to a SelectorSymbol > > Why not use blocks that change what the current namespace is? > > namespace(:myns) { > x.send :move otherargs > ... > } > > That should be thread-local of course. Everything inside the block is > executed in the :myns namespace. This looks nice, but how would #send determine the current namespace? Would it need some form of dynamic binding of a thread-local variable current_namespace done in #namespace and corresponding dynamic lookup in #send? And what about x.move?