Search

March 16, 2023
Learn »
There's a problem with this approach: I'll have to specialize `Vector Matrix.opBinary...
March 16, 2023
General »
...error: "don't you ever put template alias in `is(...)`". The current behaviour is confusing...
March 16, 2023
Issues »
https://issues.dlang.org/show_bug.cgi?id=21288

--- Comment #6 from Dlang Bot <dlang...
March 15, 2023
Learn »
...as a `struct` with `alias this` instead of as an `alias`:

```d
struct Matrix(S...
March 15, 2023
General »
...from some concrete type to the template alias.

[1] https://issues.dlang.org/show_bug...
March 15, 2023
General »
I recently faced a similar problem.

```d
import std;
static assert(isInstanceOf!(Array, Array!char...
March 15, 2023
General »
...S, size_t M, size_t N)
{
}

alias Vec3(S) = Matrix!(S, 3, 1);

void...
March 15, 2023
Learn »
...on an existing alias, which defeats the supposed meaning and purpose of `alias`.

I hope...
March 14, 2023
Learn »
...N, V)))
        {
            alias enum isVec3 = N == 3;
            alias enum isVec2 = N == 2;

            alias enum isVaildVec...
March 14, 2023
Learn »
...can get worse.

```D
alias Vec2(S) = Vector!(S, 2);
alias Vec3(S) = Vector!(S...
128 129 130 131 132 133 134 135 136 137 138
Next ›   Last »