www.digitalmars.com
Last update Tue Jun 6 16:38:20 2006

Portability Guide

It's good software engineering practice to minimize gratuitous portability problems in the code. Techniques to minimize potential portability problems are:

32 to 64 Bit Portability

64 bit processors and operating systems are coming. With that in mind:

OS Specific Code

System specific code is handled by isolating the differences into separate modules. At compile time, the correct system specific module is imported.

Minor differences can be handled by constant defined in a system specific import, and then using that constant in an if statement.