On 10/19/07, Giles Thomas <[EMAIL PROTECTED]> wrote: > > > A question - if we were trying to produce something that, at a source > level, looked like the CPython extensions API, is there any easy way > that we could get that to be able to call back to IronPython? I can > imagine something like an init() function on the managed side that could > pass a number of delegates over to the unmanaged code so that they could > be called back at a later point, but is there a more elegant solution?
You could define a COM / COM-like interface (or set of interfaces), implement them in C# and pass them to the C code. This is definitely cleaner but has the disadvantage of a tighter binding between the two parts and a potentially much more painful versioning story. -- Curt Hagenlocher [EMAIL PROTECTED]
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com