Could we get a LP64 version identifier?

Denis Koroskin 2korden at gmail.com
Sun Jan 25 06:36:28 PST 2009


On Sun, 25 Jan 2009 17:30:38 +0300, Jacob Carlborg <doobnet at gmail.com> wrote:

> Denis Koroskin wrote:
>> On Sun, 25 Jan 2009 15:32:33 +0300, Jacob Carlborg <doobnet at gmail.com>  
>> wrote:
>>
>>> Could we get a LP64 version identifier? I know that you can use this  
>>> code:
>>>
>>> "static if ((void*).sizeof > int.sizeof)"
>>>
>>> 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.
>>  version (X86) {
>>  ...
>> } else {
>>  ...
>> }
>>
>
> Win64 and all non X86 32bit versions would fall in the else statement.  
> Actually I now saw that D already has a D_LP64 version identifier.

Hm.. you are right.




More information about the Digitalmars-d mailing list