RE: [IronPython] 'out' parameters

2005-05-11 Thread Jim Hugunin
Martin's response is right, but I'm afraid that the best way to use these return values might not be obvious to everyone. Python's tuple packing and unpacking operations are often used for multiple return values in standard Python libraries and IronPython should feel the same way. Here's how thes

RE: [IronPython] 'out' parameters

2005-05-11 Thread Martin Maly
The return value and output parameters (if they are in total more than one) are returned as tuple: namespace N { public class C { public static int M(out int i, out int j, out int k) { i = 20; j = 30; k = 40; return 10; } } }