Martin,
I appreciate you giving this some thought. I can't think of an elegant
solution either..
I found a method called TestCooperativeLevel that doesn't use an 'out'
parameter to return the device's status. Instead, it throws a different
Exception based on the device's status. Therefore it
ter), the value comes back as a function return value.
Martin
-Original Message-
From: users-ironpython.com-bounces at lists.ironpython.com
[mailto:users-ironpython.com-bounces at lists.ironpython.com] On Behalf
Of
Nick Jacobson
Sent: Tuesday, May 10, 2005 11:08 PM
To: users-ironpython.com at
How will IronPython deal with functions that, in C#, use an 'out' variable?
For example, in Microsoft.DirectX.Direct3D, this function exists:
public bool CheckCooperativeLevel(out int result);
If I call this from IronPython, there's no way that the value of result
would be modified, right? But it
Michael Spencer wrote:
<<
import __builtin__
>>> dir(__builtin__)
['ArithmeticError', 'AssertionError', 'AttributeError',
'DeprecationWarning', 'E
OFError', 'Ellipsis', 'EnvironmentError', 'Equals', 'Exception', 'False',
'Float
ingPointError', 'FutureWarning', 'GetHashCode', 'GetType', 'IOError',