Are we planning on supporting name mangling to give more Ruby-ish names? Like
will we be able to do "def dispose" instead of "def Dispose"?
JD
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Brad Wilson [EMAIL
PROTECTED]
Sent: Monday, September 08,
Yes, this has been reported before (in fact, I think it was when someone was
writing "using" ☺) and we haven't yet worked out a resolution. I'll see if
there's something quick that can be fixed here later today.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Orion Edwards
Sent:
yep that is correct :)
http://github.com/casualjim/ironnails/tree/master/IronNails/vendor/iron_nails/lib/core_ext/kernel.rb
I figure you can wrap that in a begin..rescue block again and first try the
one with the bool and then the one without it.
Some implementations of Dispose don't actually imp
When you override a virtual method you're pushing much more into CLR-world than
when you're just calling some function on some method. In the latter case, you
shouldn't have to know that the function you're calling is actually defined
outside of Ruby, while in the former, this is a fairly impor
Well, the interface itself only contains the parameterless method. The version
with the parameter is part of a very common pattern that also optimizes the
finalization experience and plays nicely with derived classes. If you're
really concerned about cleaning something up, you'll probably foll
Let's revisit that later, I'm also not sure what the details were.
Tomas
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Curt Hagenlocher
Sent: Tuesday, September 09, 2008 4:40 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Overriding CLS
I know their naming convention is different, but lets see what JRuby does too.
JD
-Original Message-
From: Tomas Matousek <[EMAIL PROTECTED]>
Sent: September 09, 2008 8:55 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Overriding CLS Virtuals
Let's revisit that later,
The Java convention is that method names start with lower-case characters, so I
don't imagine that there's any special handling being performed.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Deville
Sent: Tuesday, September 09, 2008 9:43 AM
To: iron
I saw a presentation that (if I remember correctly) showed methods like doFoo
becoming do_foo. So I think they mangle method names. I don't know if they do
this for interface methods, which is closer to this problem.
JD
-Original Message-
From: Curt Hagenlocher <[EMAIL PROTECTED]>
Sent:
Ask, and ye shall recieve.
jruby 1.1.4 on JDK 1.6:
Java Code:
public interface ISayer {
public void say(String foo);
public void sayMultipleThings(String foo, String bar);
}
public class SayThings {
public static void sayThings( ISayer sayer ) {
sayer.say("Invoked from java");
sayer
Seo,
Oh, please help me. I've got all the deps installed. Now I'm at the
point where it doesn't build and you usually build a patch to make it
work. Could you take it from here?
:)
Cheers,
C.J.
signature.asc
Description: Digital signature
___
Iro
Playing around, I see that this works
include System
Generic = System::Collections::Generic
Linq = System::Linq
# var list = new List();
list = Generic::List[Int32].new
list.add 1
list.add 2
# list.Average();
puts Linq::Enumerable.average(list) # it knows it's a list of int32
=> 1.5
This i
Generic methods are not supported yet.
Tomas
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Orion Edwards
Sent: Tuesday, September 09, 2008 3:44 PM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] More CLR interop questions - Generic Methods
Playing around, I see that thi
What if you do follow naming? Does def sayMultipleThings work?
JD
-Original Message-
From: Orion Edwards <[EMAIL PROTECTED]>
Sent: September 09, 2008 2:28 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Overriding CLS Virtuals
Ask, and ye shall recieve.
jruby 1.1.4 on
Yes, sayMultipleThings works.
SayMultipleThings doesn't though (makes sense I guess)
Jim Deville wrote:
What if you do follow naming? Does def sayMultipleThings work?
JD
-Original Message-
From: Orion Edwards <[EMAIL PROTECTED]>
Sent: September 09, 2008 2:28 PM
To: ironruby
Orion: Thanks a ton for doing that.
All: With that info, I vote we support both ways. It may be something to bring
up a different day though.
JD
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Orion Edwards [EMAIL
PROTECTED]
Sent: Tuesday, Septembe
16 matches
Mail list logo