[IronPython] Static methods that look similar to instance methods?
Jonathan Jacobs
korpse-ironpython at kaydash.za.net
Sun May 7 17:58:29 CEST 2006
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
More information about the Ironpython-users
mailing list