D Users Survey: Primary OS?
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jun 1 23:53:01 PDT 2014
On 30/05/14 13:20, Chris wrote:
> But the basic code should compile. We've just had the case when a
> coworker tried my code on Windows (I develop on Linux). It compiled with
> the latest version of dmd. No questions asked. When it comes to system
> stuff it's:
>
> version (Windows) {
> // some odd shit
> }
>
> version (OS X) {
> // some other odd shit
> }
>
> version (POSIX) {
> // normal stuff
> }
>
> But these are little things like the "tmp" directory and so on. D
> usually compiles on all the major platforms.
Of course, but not everything work out of the box. Some stuff is
inherently different and one needs to take that in to account. Hopefully
the D standard library has already done that and you don't need to
know/care about it :)
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list