Odd delegate behavior
nobody
nobody at mailinator.com
Wed Feb 14 12:59:29 PST 2007
Frits van Bommel wrote:
> 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.
Thanks that certainly was just a typo on my part!
More information about the Digitalmars-d-bugs
mailing list