[IronPython] Static methods that look similar to instance methods?
Martin Maly
Martin.Maly at microsoft.com
Mon May 8 17:47:45 CEST 2006
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: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] 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 at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the Ironpython-users
mailing list