[IronPython] Static methods that look similar to instance methods?
J. Merrill
jvm_cop at spamcop.net
Mon May 8 00:51:19 CEST 2006
In C# you could use Vector3.Unproject but that might not work in IP. Have you tried it?
At 11:58 AM 5/7/2006, Jonathan Jacobs wrote
>Hi,
>
>I recently ran into a bit of a puzzling situation where I was getting None
>instead of a Vector3, and I think that IronPython thinks it should calling the
>instance method. Here are the two function signatures:
>
> >>> print Vector3.Unproject.__doc__
>Void Unproject(object viewport, Matrix projection, Matrix view, Matrix world)
>static Vector3 Unproject(Vector3 v, object viewport, Matrix projection, Matrix
>view, Matrix world)
>
>Assuming I'm correct, how would I go about forcing it to call the static function?
>
>Thanks
>--
>Jonathan
>
>When you meet a master swordsman,
>show him your sword.
>When you meet a man who is not a poet,
>do not show him your poem.
> -- Rinzai, ninth century Zen master
J. Merrill / Analytical Software Corp
More information about the Ironpython-users
mailing list