Why version() ?

BCS none at anon.com
Tue Feb 10 21:09:35 PST 2009


Hello Walter,

> and it works great for linux. Now I port my code to OSX, and it
> mysteriously dies. After much frustration, I discover that O_APPEND
> for OSX is 8, not 02000. (Yes, this kind of thing has happened to me.
> I only found it by suspecting the problem, and then going through
> every fscking definition comparing it to the one in the system .h
> file. Yeech.)

A little fun with a C compiler/preprocessor and you could make a C file that 
gives you the value by name. Then a bit of fun with D unittest that call 
into the C code and you could have a system to check if something got messed 
up for the next OS you port to.





More information about the Digitalmars-d mailing list