May 01, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
Great, I'm using the constraint, until it's fixed. Will it be fixed though... | |||
May 01, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
The static assert isn't needed. ```d enum isVector(V) = is(V==MatrixImpl!(S,1... | |||
May 01, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
I guess the current best is something like: ```d enum isVector(V) = is(V==MatrixImpl... | |||
May 01, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
Thanks a lot! So this really is a D "feature". The current behaviour is so... | |||
May 01, 2022 General » Re: Why is D unpopular? | |||
|---|---|---|---|
| |||
...in meaningful ways for you application using alias, unfortunately C++ does not provide nominal binding... | |||
May 01, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
AFAICT, I'm afraid you'll have to stick to `dot2` 🙁 This DIP I... | |||
May 01, 2022 Learn » Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
...N)
{
}
template Vector(S, size_t N)
{
alias Vector = MatrixImpl!(S, 1, N);
}
@nogc
S... | |||
April 30, 2022 Learn » Help with DynamicArray of Emsi Containers | |||
|---|---|---|---|
| |||
...counters courtesy of autoptr. e.g. ```d alias Texture = IntrusivePtr!TextureData; // dub package autoptr class... | |||
April 29, 2022 Learn » Re: T... args! | |||
|---|---|---|---|
| |||
...be done with mixin:
```d
template prn(alias args)
{
string prn()
{
string result = "write(";
foreach... | |||
April 29, 2022 Learn » Re: T... args! | |||
|---|---|---|---|
| |||
...keyword in D, it's just an alias (one that the compiler recognizes specially). So... | |||
Copyright © 1999-2021 by the D Language Foundation