Use for new import formats

Derek Parnell derek at nomail.afraid.org
Tue Aug 8 17:39:53 PDT 2006


Just letting people know that I'm using the new import formats with good 
effect in one particular area ...

    version(Windows) static import opsys = std.c.windows.windows;
    version(linux)   static import opsys = std.c.linux.linux;
    version(darwin)  static import opsys = std.c.darwin.darwin;
    version(Unix)    static import opsys = std.c.unix;

Then in the code we have ...

   x = opsys.somefunc();

which makes the code a bit tidier than the alias forms I had been using.

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocrity!"
8/08/2006 2:11:45 PM



More information about the Digitalmars-d mailing list