Could we get a LP64 version identifier?

Jacob Carlborg doobnet at gmail.com
Sun Jan 25 06:21:32 PST 2009


Frits van Bommel wrote:
> 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)

Yeah that would also work. In D both long and int have a fixed size, 
therefore should all three ways work.



More information about the Digitalmars-d mailing list