Before it's too late: delegate calling convention
Gregor Richards
Richards at codu.org
Thu Nov 2 00:36:39 PST 2006
Jarrett Billingsley wrote:
> "Lionello Lunesu" <lio at lunesu.remove.com> wrote in message
> news:eic2t2$2hjj$1 at digitaldaemon.com...
>
>>Actually, it's passed in a register, so it could be made to work.
>
>
> Ahh, but so are parameters. Since the last parameter of a function is
> passed in EAX (as long as it fits), something like..
>
> void fork(int x, int y)
>
> Will take y on the stack and x in EAX. But then converting it to a
> delegate, Y would end up past the end of the arguments, x in y's spot, and
> the context in x's spot. :S
>
>
Like I said, it's passed as an argument, it's not magic.
- Gregor Richards
More information about the Digitalmars-d
mailing list