DMD 0.174 release

Kirk McDonald kirklin.mcdonald at gmail.com
Tue Nov 14 23:16:37 PST 2006


Jarrett Billingsley wrote:
> A few questions:
> 
> 1) For the delegate .funcptr property, would it be possible for it to 
> include the context pointer as the first parameter?  Currently the .funcptr 
> allows us to get the type / call signature of the delegate but it's not 
> possible to actually use the resulting function as there is no way to pass 
> it the context short of dipping into ASM..
> 

Not so: Walter added a .ptr property to delegates in 0.168. Between that 
and .funcptr, you've got all you need to mess with delegates right there.

(And, even before these properties, you could hack delegates apart with 
a union/struct trick. No need to mess with ASM.)

-- 
Kirk McDonald
Pyd: Wrapping Python with D
http://pyd.dsource.org



More information about the Digitalmars-d-announce mailing list