Fighting Ruby's bad fame

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.

You can put the include inside a module without effecting the outside scope.
This is what I would expect to be the common case.

···


– Jim Weirich / Compuware
– FWP Capture Services
– Phone: 859-386-8855