Odd delegate behavior
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Wed Feb 14 12:41:27 PST 2007
nobody wrote:
> When I compile (v1.0) the following code for some reason opIndexDg's
> stack pointer is null and opIndexAssignDg's stack pointer is not.
>
> ----------------
[snip]
> printf(" stack -> [%X]\n", opIndexDg.ptr );
[snip]
> printf(" stack -> [%X]\n", &opIndexAssignDg.ptr );
^ You have an extra '&' here
If you remove that it should also be null (it was for me).
The address you were printing was where the null pointer was stored, not
the null pointer itself :P.
More information about the Digitalmars-d-bugs
mailing list