versions and 32 vs 64-bit code

Alex Rønne Petersen xtzgzorex at gmail.com
Mon Dec 26 12:44:21 PST 2011


On 26-12-2011 14:23, 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 don't think it's a big deal. You should write your code for D_LP64 in 
the first place anyway.

- Alex


More information about the Digitalmars-d mailing list