Search

June 08, 2022
Genel »
...var:

```d
static struct Stringish
{
    string str;
    alias str this;
}
static assert(!isSomeString!Stringish);
```

Bu...
June 07, 2022
Issues »
...std.typecons : Typedef;
import core.simd : double2;

alias fooBar = Typedef!double2;

void main()
{
        fooBar foo...
June 07, 2022
Issues »
...result == [1, 2, 3]);
}

alias badMap = range => range.map!(a => a);
alias dgify = (lazy value...
June 07, 2022
Issues »
...array[1] == 2);
    assert(array[2] == 3);
}

alias badAlias = (int[] array) => id(array);

int[] id...
June 07, 2022
Issues »
...result == [1, 2, 3], result.to!string);
}

alias badMap = range => range.map!(a => a);

Expected...
June 07, 2022
Issues »
...temp@gmx.com

## test case

alias Seq(A...) = A;
alias E = Seq!(int)[1];

## output...
June 06, 2022
Issues »
...data;
    }

    ~this ()
    {
        assert(this.ptr is &this);
    }

    alias opAssign = assign;

    ref std_string assign () (const...
June 06, 2022
Issues »
...to compile:

---
alias AliasSeq(Args...) = Args;
void test(alias a = AliasSeq!(0))() {}
alias _ = test!();
---

The...
June 06, 2022
Issues »
...com

## test case

```
void main(string[] args)
{
    alias A = int[1];
    new A;
}
```

## output

## notes...
June 05, 2022
Issues »
...another template getting expanded that escapes the alias reference.

4. this gets detected by the...
213 214 215 216 217 218 219 220 221 222 223
Next ›   Last »