Problem with generic method resolution


#1

Hi,

I have found out the following problem:

require ‘System.Core, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089’
=> true

include System
=> Object

include System::Linq::Expressions
Expression.Call
:0: wrong number of arguments (2 for 4) (ArgumentError)

Expression.Parameter
:0: undefined method `Parameter’ for TypeGroup of
Expression:Microsoft::Scripting::Actions::TypeGroup (NoMethodError)

Obviously the Call method was recognized but the Parameter one not.
Should I
file a bug or this is known and will be fixed?

Regards,
Stefan


#2

Did anyone reply to you? If you haven’t submitted a bug on RubyForge,
please do.

From: removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalid] On Behalf Of Stefan D.
Sent: Monday, March 09, 2009 7:57 PM
To: removed_email_address@domain.invalid
Subject: [Ironruby-core] Problem with generic method resolution

Hi,

I have found out the following problem:

require ‘System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’
=> true

include System
=> Object

include System::Linq::Expressions
Expression.Call
:0: wrong number of arguments (2 for 4) (ArgumentError)

Expression.Parameter
:0: undefined method `Parameter’ for TypeGroup of
Expression:Microsoft::Scripting::Actions::TypeGroup (NoMethodError)

Obviously the Call method was recognized but the Parameter one not.
Should I file a bug or this is known and will be fixed?

Regards,
Stefan


#3

There are two different Expression classes in the Expressions namespace

  • a templated one and an untemplated one. You need to force the
    untemplated one, which you can do by saying

System::Linq::Expressions::Expression.of().Parameter

From: removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalid] On Behalf Of Stefan D.
Sent: Wednesday, March 18, 2009 4:35 PM
To: removed_email_address@domain.invalid
Subject: Re: [Ironruby-core] Problem with generic method resolution

Nope. Nobody replied except you :slight_smile:

Bug report is filed:
http://rubyforge.org/tracker/?func=detail&aid=24668&group_id=4359&atid=16798
2009/3/17 Jimmy S.
<removed_email_address@domain.invalidmailto:removed_email_address@domain.invalid>

Did anyone reply to you? If you haven’t submitted a bug on RubyForge,
please do.

From:
removed_email_address@domain.invalidmailto:removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalidmailto:removed_email_address@domain.invalid]
On Behalf Of Stefan D.
Sent: Monday, March 09, 2009 7:57 PM
To: removed_email_address@domain.invalidmailto:removed_email_address@domain.invalid
Subject: [Ironruby-core] Problem with generic method resolution

Hi,

I have found out the following problem:

require ‘System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’
=> true

include System
=> Object

include System::Linq::Expressions
Expression.Call
:0: wrong number of arguments (2 for 4) (ArgumentError)

Expression.Parameter
:0: undefined method `Parameter’ for TypeGroup of
Expression:Microsoft::Scripting::Actions::TypeGroup (NoMethodError)

Obviously the Call method was recognized but the Parameter one not.
Should I file a bug or this is known and will be fixed?

Regards,
Stefan


#4

Nope. Nobody replied except you :slight_smile:

Bug report is filed:
http://rubyforge.org/tracker/?func=detail&aid=24668&group_id=4359&atid=16798

2009/3/17 Jimmy S. removed_email_address@domain.invalid


#5

We’ll probably fix this so that if not specified otherwise the default
would be the non-generic unless there is a catch :wink:

Tomas

From: removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalid] On Behalf Of Curt
Hagenlocher
Sent: Wednesday, March 18, 2009 4:47 PM
To: removed_email_address@domain.invalid
Subject: Re: [Ironruby-core] Problem with generic method resolution

There are two different Expression classes in the Expressions namespace

  • a templated one and an untemplated one. You need to force the
    untemplated one, which you can do by saying

System::Linq::Expressions::Expression.of().Parameter

From: removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalid] On Behalf Of Stefan D.
Sent: Wednesday, March 18, 2009 4:35 PM
To: removed_email_address@domain.invalid
Subject: Re: [Ironruby-core] Problem with generic method resolution

Nope. Nobody replied except you :slight_smile:

Bug report is filed:
http://rubyforge.org/tracker/?func=detail&aid=24668&group_id=4359&atid=16798
2009/3/17 Jimmy S.
<removed_email_address@domain.invalidmailto:removed_email_address@domain.invalid>

Did anyone reply to you? If you haven’t submitted a bug on RubyForge,
please do.

From:
removed_email_address@domain.invalidmailto:removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalidmailto:removed_email_address@domain.invalid]
On Behalf Of Stefan D.
Sent: Monday, March 09, 2009 7:57 PM
To: removed_email_address@domain.invalidmailto:removed_email_address@domain.invalid
Subject: [Ironruby-core] Problem with generic method resolution

Hi,

I have found out the following problem:

require ‘System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’
=> true

include System
=> Object

include System::Linq::Expressions
Expression.Call
:0: wrong number of arguments (2 for 4) (ArgumentError)

Expression.Parameter
:0: undefined method `Parameter’ for TypeGroup of
Expression:Microsoft::Scripting::Actions::TypeGroup (NoMethodError)

Obviously the Call method was recognized but the Parameter one not.
Should I file a bug or this is known and will be fixed?

Regards,
Stefan