Could we get a LP64 version identifier?
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Sun Jan 25 04:45:29 PST 2009
Jacob Carlborg wrote:
> Could we get a LP64 version identifier? I know that you can use this code:
>
> "static if ((void*).sizeof > int.sizeof)"
Shouldn't that be "static if ((void*).sizeof == long.sizeof)" or just
"static if ((void*).sizeof == 8)"?
(Note that in D long.sizeof is guaranteed to be 8)
> to do the same but that's not particular clear that the programmer wants
> to check for LP64. If so, I hope we could get it in D1 also.
More information about the Digitalmars-d
mailing list