Search

January 18, 2022
Learn »
I put this as a tip of the week in my late post:
http://dpldocs...
January 18, 2022
Learn »
It works until you have cyclic dependencies:

https://run.dlang.io/is/wDDcK5
January 18, 2022
Learn »
Works for me: https://run.dlang.io/is/XZlvQ8
January 18, 2022
Learn »
...Beter workaround is:
```d
import std.traits : Select;

alias Foo  = Select!(__VERSION__ >= 2098, TypeA, TypeB);
```
January 18, 2022
Learn »
...static if (__VERSION__ >= 2098)
    {
        alias getAlias = TypeA;
    }
    else
    {
        alias getAlias = TypeB;
    }
}
alias Foo = getAlias!();
```

Is...
January 17, 2022
Issues »
...d
import c : overloaded;

void twoArgs(alias a, alias b)() { }

void overloaded()() { }

--- c.d
void...
January 17, 2022
Issues »
...inst()
{
    return fullyQualifiedName!(frop);
}

alias attr = __traits(getAttributes, _inst);

class frop
{
    alias type_id = registry...
January 17, 2022
Learn »
...8]];
    static assert(is(typeof(mArr1.array())));
    alias R1 = typeof(mArr1);
    static assert(isRandomAccessRange!R1...
January 17, 2022
General »
...its size is 0.

You can't `alias` an expression, so the above is ill...
January 16, 2022
General »
...totally confused, could you clarify?

Sounds like "alias x = noreturn.init;"

I think it depends...
252 253 254 255 256 257 258 259 260 261 262
Next ›   Last »