Native code implementation.

Viktor L eudial at gmail.com
Fri Jan 5 09:44:32 PST 2007


There doesn't seem to be any support for ioctl:s in the d std lib. That's the main
 part I'm having to implement, that and lower-levelish terminal stuff from termios.h

This far I've been importing macro values (that I suspect can change from system
to system) by creating a c source file with constructs like

"int some_macro = SOME_MACRO;"
and then in d doing something like
"extern(C) { extern int some_macro; }"

Is this also a good idea, or is there another way of importing these sorts of macros?


More information about the Digitalmars-d-learn mailing list