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

Tomas Matousek Tomas.Matousek at microsoft.com
Tue Jun 16 11:49:25 EDT 2009


It is in fact intentional - mangled names are disabled for built-in types (Object, Fixnum, String, etc.) since there were problems with name conflicts in various Ruby apps.
The mangling  is still on for other CLR types.

Tomas

-----Original Message-----
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Robert Brotherus
Sent: Tuesday, June 16, 2009 4:01 AM
To: ironruby-core at rubyforge.org
Subject: [Ironruby-core] Method name case mungling broken in latest IR?

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.
_______________________________________________
Ironruby-core mailing list
Ironruby-core at rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core



More information about the Ironruby-core mailing list