Thanks Michael.
I copied it across but still got the same failure. I can't even get the
optparse.rb to require directly (here optparse.rb is in the build\debug
folder):
D:\dev\ruby\ironruby\head\build\debug>ir
IronRuby 1.0.0.0 on .NET 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.
Note that local variables do not work today in the console.
As a workaround, use globals instead (eg $x = 42 instead of x = 42).
>>> require 'optparse'
D:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\KernelOps.cs:300:i
n `require': Type 'IronRuby, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext' is
missing or cannot be loaded.
(Microsoft::Scripting::Runtime::MissingTypeException)
from :0:in `Initialize##1'
But this does not crash...
D:\dev\ruby\ironruby\head\build\debug>ir optparse.rb
Is there a problem with the requiring mechanism?
Pete
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core