Re: [Ironpython-users] Passing an IronPython function to C#

2012-03-17 Thread Slide
I'm just glad to see more people engaged in using IronPython! Thanks, Slide On Mar 17, 2012 5:16 PM, "Doug Blank" wrote: > On Sat, Mar 17, 2012 at 6:51 PM, Dino Viehland > wrote: > > > > > > Jeff wrote: > >> IronPython's conversion code is, um, interesting -- Dino might > understand it all, >

Re: [Ironpython-users] Passing an IronPython function to C#

2012-03-17 Thread Doug Blank
On Sat, Mar 17, 2012 at 6:51 PM, Dino Viehland wrote: > > > Jeff wrote: >> IronPython's conversion code is, um, interesting -- Dino might understand it >> all, >> but I don't know if anyone else does -- so it's possible two different sets >> of >> conversions are being chosen. Now, this >> *shou

Re: [Ironpython-users] Passing an IronPython function to C#

2012-03-17 Thread Dino Viehland
Jeff wrote: > IronPython's conversion code is, um, interesting -- Dino might understand it > all, > but I don't know if anyone else does -- so it's possible two different sets of > conversions are being chosen. Now, this > *shouldn't* be the case, but it's my hypothesis. Ha! Overload resolutio

Re: [Ironpython-users] Passing an IronPython function to C#

2012-03-16 Thread Jeff Hardy
On Fri, Mar 16, 2012 at 8:45 AM, Doug Blank wrote: > Can you think of *any* workaround on the C# side? Nothing I have tried > will allow me to get a Python-based function (lambda, PythonFunction, > builtin) out of an IList as a Func. If you're in C# 4 this should work: void test3(IList funct

Re: [Ironpython-users] Passing an IronPython function to C#

2012-03-16 Thread Doug Blank
On Fri, Mar 16, 2012 at 11:36 AM, Jeff Hardy wrote: > On Fri, Mar 16, 2012 at 4:24 AM, Doug Blank wrote: >> This is looking more and more like a bug. I see from >> http://stackoverflow.com/questions/799987/how-to-pass-a-lambda-expression-to-a-c-sharp-constructor-from-an-ironpython-scri >> >> that

Re: [Ironpython-users] Passing an IronPython function to C#

2012-03-16 Thread Jeff Hardy
On Fri, Mar 16, 2012 at 4:24 AM, Doug Blank wrote: > Any suggestions appreciated! > Oh, and please open an issue on Codeplex with a minimal reproduction, if you can. Thanks., Jeff ___ Ironpython-users mailing list [email protected] http://mai

Re: [Ironpython-users] Passing an IronPython function to C#

2012-03-16 Thread Jeff Hardy
On Fri, Mar 16, 2012 at 4:24 AM, Doug Blank wrote: > This is looking more and more like a bug. I see from > http://stackoverflow.com/questions/799987/how-to-pass-a-lambda-expression-to-a-c-sharp-constructor-from-an-ironpython-scri > > that it works for constructors (and have verified that it does)

Re: [Ironpython-users] Passing an IronPython function to C#

2012-03-16 Thread Doug Blank
On Thu, Mar 15, 2012 at 9:22 PM, Doug Blank wrote: > I am attempting to pass an IronPython function into the following C# > functions, which I import into IronPython: > >        public static Func getFunc1(params Func [] functions) { >                return functions[0]; >        } > >        publ