IronPython uses the style of the call to determine which of the 2 methods it 
will prefer:

Class.Method(instance, parameter)       ... will prefer static method
instance.Method(parameter)              ... will prefer instance method

So this should work. However, we made changes to the overload resolution code 
recently so this may be a case that escaped us. I'll file a bug and hopefully 
we'll get to it before the next beta.

Martin


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Jacobs
Sent: Monday, May 08, 2006 7:19 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Static methods that look similar to instance methods?

Simon Dahlbacka wrote:
> I suppose the problem is that the following is valid (and even used)
> python code

Quite right.

> Btw, why do you need both a static and a non-static method with the same
> name?

Well, it's not my code, it's from the Managed DirectX API.
--
Jonathan

_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to