From: "David A. Black" Date: 2005-11-02T22:52:57+09:00 Subject: Re: ruby-dev summary 27393-27541 Hi -- On Wed, 2 Nov 2005, Christophe Grandsire wrote: > Selon "David A. Black" : > >> >> How about block level? >> >> using jcode do >> p "\244\242\244\244".chop >> end >> > > Nice idea. Maybe block level when one gives a block, and module or method level > when one doesn't (not unlike how "private" and "public" behave, depending on > whether they receive a parameter or not). That's similar to what I did in Ruby Behaviors, but with an "off" switch for the non-block version: # Block b.adopt do ... end # No block b.adopt ... b.desist (where b is a Behavior object) Of course, Ruby Behaviors had some issues, especially thread safety -- which is what got the discussion going about selector namespaces at RubyConf 2001 :-) David -- David A. Black dblack@wobblini.net