32/64 bit in Phobos

Jason den Dulk via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Mar 7 17:49:57 PST 2015


Hi

I noticed that in 32bit, many Phobos functions use int and uint, 
while in 64bit, they use long and ulong. As a result I am having 
some difficulty in writing code that works for both 32 bit and 64 
bit. Is there an existing mechanism that allows writing code that 
will work in both 32 bit and 64 bit with regards to function 
calls to Phobos?

Thanks.
Regards


More information about the Digitalmars-d-learn mailing list