The actual how-to is given here.
The only on-line documentation I could find that mentioned this has a
TODO - Delegates with out/ref parameters
about halfway down.
So, experiment time. Build
callback.dll containing (or the same with '
and call it from IronPython 2.6:
Array[object]((<System.IntPtr object at 0x000000000000002B >, False))
In sum -- it fails silently; the direct return value is fine, but mutating the actually by-value parameter does nothing.
int, and using non-default values shows that the value of a
ref parameter is passed in correctly, it just can't be passed out with direct assignment.