Try:
return scriptCode.Run(context2.Scope, false);
Haven''t tested that though.
Pete
_______________________________________________
Ironruby-core mailing list
Ironruby-core at rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core
-----Original Message-----
From: ironruby-core-bounces at rubyforge.org
[mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Wayne Kelly
Sent: Wednesday,23 April 23, 2008 14:01
To: ironruby-core at rubyforge.org
Subject: [Ironruby-core] 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.
_______________________________________________
Ironruby-core mailing list
Ironruby-core at rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core