March 16, 2023 Learn » Re: Better way to compromise on the lack of template alias resolution stuff? | |||
|---|---|---|---|
| |||
There's a problem with this approach: I'll have to specialize `Vector Matrix.opBinary... | |||
March 16, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
...error: "don't you ever put template alias in `is(...)`". The current behaviour is confusing... | |||
March 16, 2023 Issues » [Issue 21288] Wrong context pointer for alias this function | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=21288 --- Comment #6 from Dlang Bot <dlang... | |||
March 15, 2023 Learn » Re: Better way to compromise on the lack of template alias resolution stuff? | |||
|---|---|---|---|
| |||
...as a `struct` with `alias this` instead of as an `alias`: ```d struct Matrix(S... | |||
March 15, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
...from some concrete type to the template alias. [1] https://issues.dlang.org/show_bug... | |||
March 15, 2023 General » Re: Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
I recently faced a similar problem. ```d import std; static assert(isInstanceOf!(Array, Array!char... | |||
March 15, 2023 General » Does `is` expression with template alias need fixing. | |||
|---|---|---|---|
| |||
...S, size_t M, size_t N)
{
}
alias Vec3(S) = Matrix!(S, 3, 1);
void... | |||
March 15, 2023 Learn » Re: Better way to compromise on the lack of template alias resolution stuff? | |||
|---|---|---|---|
| |||
...on an existing alias, which defeats the supposed meaning and purpose of `alias`. I hope... | |||
March 14, 2023 Learn » Re: Better way to compromise on the lack of template alias resolution stuff? | |||
|---|---|---|---|
| |||
...N, V)))
{
alias enum isVec3 = N == 3;
alias enum isVec2 = N == 2;
alias enum isVaildVec... | |||
March 14, 2023 Learn » Better way to compromise on the lack of template alias resolution stuff? | |||
|---|---|---|---|
| |||
...can get worse. ```D alias Vec2(S) = Vector!(S, 2); alias Vec3(S) = Vector!(S... | |||
Copyright © 1999-2021 by the D Language Foundation