From: Gavin Sinclair Date: 2004-01-22T10:04:51+09:00 Subject: Re: Fighting Ruby's bad fame On Thursday, January 22, 2004, 8:29:58 AM, GGarramuno wrote: > Oh, yes, I forgot another reason why it does not bother me in C++. > The other benefit in C++ is that the 'using' construct can also be > local to a particular block. > That is, you can have something like: > void myfunc() > { > using namespace Mine; > // functions > } > without effecting the outer scope (ie. what's outside the function). > In ruby, if you do: > def myfunc() > include Mine > end > Your outer scope will also get effected. s/effect/affect/ That is a feature I would definitely like to see in Ruby ('include' having an effect local to the enclosing block, or whatever the terminology should be). Must remember to raise an RCR. Gavin