[IronPython] Choosing the right overload
Jonathan Jacobs
korpse-ironpython at kaydash.za.net
Fri Jun 16 19:32:37 CEST 2006
Jonathan Jacobs wrote:
> I did some digging in the source code, it looks like the problem is the
> indexer for BuiltinFunctionOverloadMapper. The problem appears to be: from
> Python I am unable to specify whether an argument is byref or not and so the
> comparison fails when trying to match signatures.
I did a little less digging and a little more thinking:
>>> Direct3D.Mesh.FromFile.__overloads__[(str, Direct3D.MeshFlags,
Direct3D.Device,
clr.GetClrType(Direct3D.ExtendedMaterial).MakeArrayType().MakeByRefType())]
<built-in function FromFile>
Yay! Somewhat insane, but yay.
--
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