pass a delegate to an API as a context pointer?

Jascha Wetzel firstname at mainia.de
Tue Jul 3 04:16:05 PDT 2007


teo wrote:
> Or maybe you mean that the delegate foo f in the context of void test(foo f) function and &a.abc isn't the same thing?

yep, it's passed by value, therefore f and &a.abc are stored in 
different places.
but also check the calling conventions, as frits pointed out.

> All I want right now is to understand what happen.

if you know some x86 assembler, just use obj2asm or ddbg to look 
"inside" the code.



More information about the Digitalmars-d mailing list