Search

December 09, 2021
General »
...still do this:

```d
AliasSeq"hello $name"
```

(or `alias I = AliasSeq;` and `I"hello $name"`)
December 09, 2021
Learn »
...might help understand what is happening:

```d
alias foobar = immutable(char)[]; // this doesn't play...
December 09, 2021
Learn »
...meta : Filter;
enum bool isType(alias x) = is(x);
alias TypesOnly(args...) = Filter!(isType, args...
December 09, 2021
Learn »
Not exactly...

```d
alias str = immutable(char)[];

void foo(str...)(str args) {
  foreach(ref a...
December 09, 2021
General »
...also things like [inconsistencies and limitations of alias](https://forum.dlang.org/post/augmegssadjgrzvfhofk@forum...
December 08, 2021
Learn »
...interface ICallable
{
    void opCall() const;
}

auto makeDelegate(alias fun, Args...)(auto ref Args args)
{
    return...
December 08, 2021
Issues »
...assert(x == 0);
    }
    {
        struct S
        {
            ulong x;
            alias x this;
        }

        shared S s;
        s = 0x1234...
December 08, 2021
Learn »
I went with the mixin approach, which seems to work fine except that I couldn...
December 08, 2021
Learn »
yeah won't work since the alias again drops the `this`, this is the same...
December 08, 2021
Learn »
...a few times I tried to alias the result:

`alias theProp = __traits(child, s, field...
263 264 265 266 267 268 269 270 271 272 273
Next ›   Last »