[Ironruby-core] The future of Ruby.NET

Curt Hagenlocher curt at hagenlocher.org
Tue Feb 5 15:43:14 EST 2008

On Feb 5, 2008 12:31 PM, Greg Akins <angrygreg at gmail.com> wrote:
> Meaning, that like Ruby.Net can we write .Net classes in Ruby rather
> than writing them as strings that are passed to the RubyEngine?

There's a kind of mismatch between the capabilities of statically
defined types (as in the CLR) and the dynamic classes that Ruby
offers.  What should happen to the corresponding CLR class if, for
instance, someone were to dynamically add methods to the Ruby class?
CLR classes don't support that kind of operation.

The best option in this regard is probably to allow a dynamic (Ruby or
other DLR) class to be delegated to by a statically-defined wrapper.
Conceptually, such a wrapper could be automatically generated from the
Ruby class definition, but once defined it would be unalterable.

Curt Hagenlocher
curt at hagenlocher.org

More information about the Ironruby-core mailing list