[dmd-beta] 32 to 64 bit portability guide

Sean Kelly sean at invisibleduck.org
Wed Jan 19 10:43:49 PST 2011


On Jan 15, 2011, at 1:47 PM, Walter Bright wrote:

> A start:
> 
> http://www.digitalmars.com/d/2.0/32-64-portability.html

printf("s = '%.*s'\n", s.length, s.ptr); // 32 and 64 bit

Is the above correct?  The above syntax expects an int for the length and s.length will be a ulong.  Or does the compiler do some sort of implicit cast?


More information about the dmd-beta mailing list