Before it's too late: delegate calling convention

Jarrett Billingsley kb3ctd2 at yahoo.com
Wed Nov 1 23:48:16 PST 2006


"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 





More information about the Digitalmars-d mailing list