Martin,

Expected, but also a bug. IronRuby will not provide a mangled name if the 
method name contains a 2-letter-word that is not in this list:

as
by
do
id
it
if
in
is
go
my
of
ok
on
to
up

This list is pretty arbitrary ... so "me" can probably be added to it. FYI, the 
code is in Merlin\Main\Languages\Ruby\Ruby\Runtime\RubyUtils.cs#TryMangleName 
(approx. line 298). 

~Jimmy

> -----Original Message-----
> From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-
> boun...@rubyforge.org] On Behalf Of Martin Smith
> Sent: Tuesday, November 10, 2009 4:48 PM
> To: ironruby-core@rubyforge.org
> Subject: [Ironruby-core] IronRuby and Me
> 
> Hello again (sorry for the double post),
> 
> We've noticed some slightly odd behavior.  IronRuby, it seems, won't mangle
> methods that have the word "Me" in them, so if I have a method:
> 
> UncheckMeAndMyChildren, uncheck_me_and_my_children won't work
> 
> but for:
> 
> UncheckSelfAndMyChildren, uncheck_self_and_my_children DOES work.
> 
> Is this a bug or the expected behavior?
> 
> Thanks,
> Martin
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core

_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to