May 02, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
That's not my answer. And it is nonsense, because my answer is - what T... | |||
May 02, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
...Nope. MyAlias is an alias. A template alias, but an alias nonetheless. It should be... | |||
May 02, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
I take it your answer is that T must be int. But that's nonsense... | |||
May 02, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
...YourAlias(T) {
alias YourAlias = int; // Is it this one?
}
template HerAlias(T) {
// ...
alias HerAlias = HisAlias... | |||
May 02, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
On Monday, 2 May 2022 at 16:29:05 UTC, Loara wrote: Why? That's... | |||
May 02, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
I don't really see what your example is trying to show. This also doesn... | |||
May 02, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
...example this code:
```d
template MyAlias(T){
alias MyAlias = int;
}
T simp(T)(MyAlias!T... | |||
May 02, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
On Monday, 2 May 2022 at 00:54:40 UTC, Elfstone wrote: At the bottom... | |||
May 02, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
...can't declare a parameter with an alias if it's a template?! Speaking of... | |||
May 01, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
The DIP was postponed. I can contact the author to see if he intends to... | |||
Copyright © 1999-2021 by the D Language Foundation