versions and 32 vs 64-bit code

Xinok xinok at live.com
Mon Dec 26 11:29:19 PST 2011


On 12/26/2011 8:23 AM, Andrej Mitrovic wrote:
> On 12/26/11, Alex Rønne Petersen<xtzgzorex at gmail.com>  wrote:
>> Use:
>>
>> version (D_LP64)
>> {
>>       // 64-bit ...
>> }
>> else
>> {
>>       // 32-bit ...
>> }
>
> So why doesn't D_LP32 exist? If you already use "version(X86) else
> version(X86_64)" you're going to have to swap all of your code around
> if you start using D_LP64..

I agree, but I don't think D_LP32 would be correct since LP stands for 
"long pointer".


More information about the Digitalmars-d mailing list