Re: [IronPython] Latest IronPython on Mono

2009-03-21 Thread Michael Foord
Seo Sanghyeon wrote: 2009/3/22 Dino Viehland : If this is the only issue you might try going back a week or two in the IronPython history. BuiltinFunction.Generated.cs is new code that was just added. Alternately you could probably delete BuiltinFunction.Generated.cs and just update Buil

Re: [IronPython] Creating Dynamic Assemblies from IronPython 2.6

2009-03-21 Thread Jeff Hardy
Hi Dino, I'm updating Seo's old ctypes.py to work with 2.6, so unfortuantely it's a little more complex than just one method. I could probably use a delegate that takes an object[], but BuiltinFunction contains that code already, and it is a lot more optimized than I could manage. Plus it's less co

Re: [IronPython] Latest IronPython on Mono

2009-03-21 Thread Seo Sanghyeon
2009/3/22 Dino Viehland : > If this is the only issue you might try going back a week or two in the > IronPython history.  BuiltinFunction.Generated.cs is new code that was just > added.  Alternately you could probably delete BuiltinFunction.Generated.cs > and just update BuiltinFunction.cs to r

Re: [IronPython] Creating Dynamic Assemblies from IronPython 2.6

2009-03-21 Thread Curt Hagenlocher
In case it's interesting or useful, I've attached some p/Invoke stuff I was playing with before I got derailed by the DefineDynamicAssembly problem and then joined Microsoft :). On Sat, Mar 21, 2009 at 10:45 AM, Dino Viehland wrote: > If you only have 1 method and don't need overload resolution

Re: [IronPython] Latest IronPython on Mono

2009-03-21 Thread Dino Viehland
Thanks for trying this! If this is the only issue you might try going back a week or two in the IronPython history. BuiltinFunction.Generated.cs is new code that was just added. Alternately you could probably delete BuiltinFunction.Generated.cs and just update BuiltinFunction.cs to remove it'

Re: [IronPython] Creating Dynamic Assemblies from IronPython 2.6

2009-03-21 Thread Dino Viehland
If you only have 1 method and don't need overload resolution I'd suggest making a delegate using System.Delegate.CreateDelegate. Otherwise this could be made public. > -Original Message- > From: users-boun...@lists.ironpython.com [mailto:users- > boun...@lists.ironpython.com] On Behalf

[IronPython] Latest IronPython on Mono

2009-03-21 Thread Seo Sanghyeon
Today I took some time trying to compile latest IronPython (48392) on latest Mono (129950). NAnt build file I used is here: https://fepy.svn.sourceforge.net/svnroot/fepy/trunk/patches/latest/IronPython.build Note that problem I discussed last time (IronPython 2.0 RC 2, December 2008) is now fixed

Re: [IronPython] Creating Dynamic Assemblies from IronPython 2.6

2009-03-21 Thread Jeff Hardy
Thanks Curt, that worked. Now I have a new problem - I can get a MethodInfo, but I need to be able to convert it to something I can call. Seo's old code used BuiltinFunction.MakeOrAdd, but that is now internal. Can this be made public, or is there a better way to handle it? - Jeff 2009/3/20 Curt