Combining Delegate and Functions

BCS none at anon.com
Sat Jul 4 08:39:28 PDT 2009


Hello Eric,

> Daniel Keep wrote:
> 
>> Eric Poggel wrote:
>> 
>>> ...
>>> 
>>> Also, do you see any problems that would arise from replacing
>>> functions with delegates internally, so that no more conversions
>>> between them would be required?
>>> 
>> Say goodbye to being able to call non-D libraries that take
>> callbacks?
>> 
> cfunc(&foo.funcptr)
> 
> ?
> 

that would get you the address of a reference to the thunk. OTOH foo.ptr 
might work. 





More information about the Digitalmars-d mailing list