Re: [Ironruby-core] How can you return the Rubified version of a CLR object back to the CLR?

2011-02-04 Thread Tomas Matousek
This is by design. System.String doesn't really have "reverse" method. IronRuby just pretends it's there to make work more like Ruby string. So while you're writing Ruby code you use these convenience methods, but once you're in another context (another language, be it C#, or Python) you won't s

[Ironruby-core] How can you return the Rubified version of a CLR object back to the CLR?

2011-02-04 Thread Greg Houston
Using IronRuby from C# is like a one-way street. I can take a C# object, and use it from the DLR. But I can't enhance that object and return it back to C#. When I return it back, it looses all the Ruby joy! I've got an example of what I mean at http://pastie.org/1529598 How can I get a CLR o