D Users Survey: Primary OS?

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Fri May 30 02:25:39 PDT 2014


On 2014-05-30 00:13, Kiith-Sa wrote:

> Or if you're working on tools, don't
> make them for $OS, make them cross-platform. (I boycott
> non-crossplatform tools
> by default)

That's not so easy, depending on what you're doing. Some things are done 
in completely different ways depending on the operating system. If 
you're luck you can code two versions, one for Windows and one for 
Posix. Low level stuff is usually platform dependent, even if it fall 
under one of the above categories. For example, getting the full path to 
the currently running executable looks completely different on Windows, 
OS X, Linux and FreeBSD.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list