version as an expression?

Tejas notrealemail at gmail.com
Mon Sep 12 10:39:20 UTC 2022


On Monday, 12 September 2022 at 10:26:40 UTC, ryuukk_ wrote:
> On Monday, 12 September 2022 at 10:02:48 UTC, Nick Treleaven 
> wrote:
>> On Sunday, 11 September 2022 at 21:38:51 UTC, ryuukk_ wrote:
>>> On Sunday, 11 September 2022 at 05:38:44 UTC, TheGag96 wrote:
>>>> [...]
>>>
>>> It doesn't work with alias
>> ```d
>> import std.traits;
>> alias A = Select!(isVersion("Windows"), WinType, PosixType);
>> ```
>
> Sorry but i refuse to touch phobos, specially std.traits, i 
> want my compile to remain fast



Weren't you copy pasting stuff that you needed? Why can't you do 
that with this as well?


More information about the Digitalmars-d mailing list