[Ironruby-core] Method name case mungling broken in latest IR?

Robert Brotherus robert.brotherus at napa.fi
Tue Jun 16 07:01:05 EDT 2009


With IR 0.3 release we have:


c:\work\napa.net\NapaRuby>\work\tools\ruby\ironruby-0.3.0\bin\ir.exe
IronRuby 0.3.0.0 on .NET 2.0.50727.3074
Copyright (c) Microsoft Corporation. All rights reserved.

>>> x="abc".to_clr_string
=> 'abc'

We can call x.GetType method in "ruby case":

>>> x.get_type
=> #<System::RuntimeType:0x000005c>


With a recent codebase from:
http://www.codeplex.com/dlr/SourceControl/ListDownloadableCommits.aspx
ChangeSet 25140


c:\work\napa.net\NapaRuby>ir
IronRuby 0.5.0.0 on .NET 2.0.50727.3074
Copyright (c) Microsoft Corporation. All rights reserved.

>>> x=System::String.new('abc')
=> 'abc'

>>> x.get_type
:0:in `__send__': undefined method `get_type' for "abc":String
(NoMethodError)

from C:\...\IronRuby.Libraries\Builtins\KernelOps.cs:1421:in
`SendMessageOpt'

We can still use the original method name: 

>>> x.GetType
=> System.String


I suppose the apparent dropping of support for name-mungling is not
intentional?

Robert J. Brotherus
Napa Inc.


More information about the Ironruby-core mailing list