Module::class_eval

What’s the story with ModuleOps.Evaluate(CodeContext, RubyModule,
MutableString) ?

I could get the previous version to work by uncommenting the code at the
bottom to call scriptCode.Run

but in the new version, the signature of the Run method has changed to
expect a Scope rather than a CodeContext.

What value should be passed as the Scope?

I’ve tried context.Scope and context2.Scope - they both compile and
execute OK, but they don’t execute the code in the correct Scope.

At this stage, I’m just interested in a quick fix to this method so that
I can use it to continue exploring the rest of gems setup.rb

Cheers, Wayne.

Wayne K.:

Module::class_eval

eval and friends with binding support should arrive this week. Hang in
there!

Thanks,
-John

Try:
return scriptCode.Run(context2.Scope, false);

Haven’t tested that though.

Pete


Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core