How to use D for cross platform development?

Iain Buclaw ibuclaw at ubuntu.com
Wed Mar 28 10:27:12 PDT 2012


On 28 March 2012 16:31, Bennie Copeland <mugen.kanosei at gmail.com> wrote:
> On Monday, 26 March 2012 at 10:46:39 UTC, Chris W. wrote:
>>
>> I am using D for cross platform development. I recently implemented C
>> wrappers for D. It works fine (Mac OS X). I could also create a Python
>> module that consists of both D and C code (the C code is really just the
>> wrapper for the module's functionality that is completely in D). It also
>> works with Lua.
>>
>> I think the decision to make C logic part of the language was a very very
>> good idea. The dream of every cross platform developer.
>
>
> Great to hear someone with experience with it. Was there any issues with the
> code that had to be tweaked depending on the OS? When I was looking at C++,
> there was implementation defined data type sizes, endieness, implementation
> defined order of variables in a struct, etc. On that topic, what do I have
> to consider in D if I want binary compatibility in files saved on different
> OS's?

Binary compatibility by measure of thumb is no different to binary
compatibility in C or C++ when moving executables across different
versions of the same platform.


-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the Digitalmars-d mailing list