Use for new import formats

John Reimer terminal.node at gmail.com
Wed Aug 9 10:59:08 PDT 2006


On Tue, 08 Aug 2006 18:09:01 -0700, Derek Parnell  
<derek at nomail.afraid.org> wrote:

> On Tue, 08 Aug 2006 18:00:43 -0700, kris wrote:
>
>> Derek Parnell wrote:
>>> 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.
>>
>> Indeed ~ I'll be doing something similar, once Build handles the new
>> imports :D
>
> BTW, it does now. I'm just finalizing the docs and planning to release it
> in the next 24 hours.
>


Yay!



More information about the Digitalmars-d mailing list