itsme213 wrote: > "Michael Neumann" <mneumann / ntecs.de> 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? It's not just #send. Any method call would need that information. Yes, something like a thread-local would probably work. Maybe, the current namespace should be stored in a special location on the stack... not sure about that. Regards, Michael