C callbacks getting a value of 0! Bug in D?

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 29 05:35:01 PDT 2017


On 8/28/17 9:34 PM, Johnson Jones wrote:

> produces 4 on both x86 and x64. So, I'm not sure how you are getting 8.

Yes, this is exactly why you should use c_long and c_ulong, because just 
using int makes it not portable to other systems.

-Steve


More information about the Digitalmars-d-learn mailing list