saladin
29-03-2007 10:25:54
CAUTION: xTreme newbish question ahead!
The question is, how does python-ogre make:
sceneNode.translate(x, y, z)
and sceneNode.translate(Ogre.Vector3(x, y,z))
both valid?
AFAK, Python doesn't support function overloading in the same namespace. e.g. :
foo(x) and foo(x,y) in the same namespace.
Unless with a helper function that explicitly compares 'signatures' and calls different branches:
http://mail.python.org/pipermail/python ... chment.pot
The question is, how does python-ogre make:
sceneNode.translate(x, y, z)
and sceneNode.translate(Ogre.Vector3(x, y,z))
both valid?
AFAK, Python doesn't support function overloading in the same namespace. e.g. :
foo(x) and foo(x,y) in the same namespace.
Unless with a helper function that explicitly compares 'signatures' and calls different branches:
http://mail.python.org/pipermail/python ... chment.pot


