[Ironruby-core] Throwing Exceptions defined in Ruby from C#
suppakilla at gmail.com
Fri Feb 13 15:54:03 EST 2009
I might try that just out of curiosity to see how it behaves, even
though (honestly) I don't find it too much of a clean solution.
On Fri, Feb 13, 2009 at 19:57, Pete Bacon Darwin
<bacondarwin at googlemail.com> wrote:
> Could you not achieve the wanted effect through a kind of monkey patching?
> I.E. Create the exception class in C# then redeclare it in the common.rb.
> The new class in Ruby would extend the one created in C# but wouldn't change
> anything if the C# one was there in the first place. If it was there, i.e.
> you were using the pure Ruby version, then it would just be creating it for
> the first time. No harm done.
> Off the top of my head, I haven't thought hard about this or tried it...
> There are probably issues of order declaration or something.
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
More information about the Ironruby-core