Re: [IronPython] c# function that passes arguments by reference

2006-08-26 Thread Frank Kampas
,0))>>> dj = clr.Reference[System.Array[float]]((0,0,0))   Thanks for your help on this.   Frank - Original Message - From: Dino Viehland To: Discussion of IronPython Sent: Friday, August 25, 2006 7:52 PM Subject: Re: [IronPython] c# function that passes arguments b

Re: [IronPython] c# function that passes arguments by reference

2006-08-25 Thread Dino Viehland
] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Kampas Sent: Friday, August 25, 2006 2:17 PM To: Discussion of IronPython Subject: Re: [IronPython] c# function that passes arguments by reference   Ok, that worked but what I got back is not very useful   >>> lpstat = clr.Referen

Re: [IronPython] c# function that passes arguments by reference

2006-08-25 Thread Frank Kampas
From: Dino Viehland To: Discussion of IronPython Sent: Friday, August 25, 2006 5:00 PM Subject: Re: [IronPython] c# function that passes arguments by reference You can do:   import System import clr clr.Reference[System.Array[int]]( System.Array[int]( (1,2,3)

Re: [IronPython] c# function that passes arguments by reference

2006-08-25 Thread Dino Viehland
] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Kampas Sent: Friday, August 25, 2006 1:43 PM To: Discussion of IronPython Subject: Re: [IronPython] c# function that passes arguments by reference   how to I create an array to pass by reference?  I assume that your example is creating an integer

Re: [IronPython] c# function that passes arguments by reference

2006-08-25 Thread Frank Kampas
: [IronPython] c# function that passes arguments by reference This is the “easy” way to call functions that are passing values by reference.  You should be able to pass non-zero values as well as non-empty arrays.  The only thing that should disallow this is if there were multiple

Re: [IronPython] c# function that passes arguments by reference

2006-08-25 Thread Dino Viehland
Frank Kampas Sent: Friday, August 25, 2006 12:58 PM To: users@lists.ironpython.com Subject: [IronPython] c# function that passes arguments by reference   If I import a c# function that passes its arguments (integers and arrays) by reference, the only way I can get it to work is pass zeroes

[IronPython] c# function that passes arguments by reference

2006-08-25 Thread Frank Kampas
If I import a c# function that passes its arguments (integers and arrays) by reference, the only way I can get it to work is pass zeroes for the integers and arrays of zero for the arrays.  The results for the variables passed by reference return with the function return.  Is that what is sup