This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Delegates (or something)


On Sat, Apr 18, 2009 at 03:04:33PM -0700, William Ahern wrote:
> I'm curious of people's thoughts on this. Especially if somebody can point
> out a bug, including the "you just got lucky that it works" kind.
> 
> Not exactly sure what the proper terminology is called. It's very similar to
> what C# calls delegates, except you can't pass new parameters to the
> invocation. Similar to a lambda expression, perhaps. Practically speaking,
> it's a neat hack to abstract away (with what _should_ be almost zero
> overhead) manually initializing and invoking the ffi_cif object by using
> GCC's type introspection capabilities.
> 

Updated code here:

	http://25thandclement.com/~william/projects/delegate.c.html


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]