Forum: IronRuby Re: Basic interoperability question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ade8632553a9243ae05fc920f68644c1?d=identicon&s=25 Jim Deville (Guest)
on 2009-06-07 21:01
(Received via mailing list)
Require 'mscorlib' is not as essential anymore. If you run ir -e "puts
System::String.class" it will wolrk just fine. I still use require
'mscorlib' in my scripts tlo signal to other programmers that this scrpt
will use .NET interop, but I don't think it is needed.

I'll let Tomas answer the second part, and clarify my answer if needed.

JD

....there is no try
Sent from my phone. Please excuse typos and txtspk.
Cb51033949ffccd982ae32c9f890f25a?d=identicon&s=25 Tomas Matousek (Guest)
on 2009-06-08 01:19
(Received via mailing list)
As for #2: it doesn't work yet. instance_methods currently only includes
Ruby methods and methods that were already called (are cached) but it
should indeed include names of all instance CLR members.

Tomas
E1deaac6561498a0e7472e6268ea9ccc?d=identicon&s=25 Jimmy Schementi (Guest)
on 2009-07-01 10:09
(Received via mailing list)
Should require 'mscorlib' not be needed though? Does the first reference
to "System" do this automatically? JRuby requires that you do "require
'java'" to get at any Java classes, and I'm not what the benefit to
doing it implicitly is. IronPython also has the "import clr"
requirement, so what to people thing about the lack of a signal as to
whether a IronRuby script uses .NET types or not?

Tomas, can you elaborate on why this is technically not needed anymore?
This topic is locked and can not be replied to.