May 04, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
Alright, but we need a DIP to get the enhancement which can be in. :-) I... | |||
May 04, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
I don't believe those two words are mutually exclusive. It can be a bug... | |||
May 03, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
Ok, so C++ has similar limitations when you have a template with an unknown parameter... | |||
May 03, 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 03, 2022 Learn » Re: How to get compatible symbol names and runtime typeid names for templated classes? | |||
|---|---|---|---|
| |||
...template Register() {
static this() {
import factory.register;
alias This = typeof(this);
// bypassing private
__traits(getMember... | |||
May 03, 2022 Issues » [Issue 23082] stringof of template alias overloaded with function accessed by trait: segfault. | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=23082 Basile-z <b2.temp@gmx.com... | |||
May 03, 2022 Learn » Re: How to get compatible symbol names and runtime typeid names for templated classes? | |||
|---|---|---|---|
| |||
...such as:
```d
private mixin template RegisterModule(alias MOD) {
void RegisterModule() {
static foreach (SYM; getSymbolsByUDA... | |||
May 03, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
No, an alias is not a type and it'll be immediately substitutedwith the aliased... | |||
May 03, 2022 Learn » Re: Parameters declared as the alias of a template won't accept the arguments of the same type. | |||
|---|---|---|---|
| |||
...in user code, especially with aliases that alias another aliased declarations. I think using [typedefs... | |||
May 03, 2022 Learn » How to get compatible symbol names and runtime typeid names for templated classes? | |||
|---|---|---|---|
| |||
...runtime type:
```d
class Foo {}
void main() {
alias Foo F;
writeln(fullyQualifiedName!F);
auto f... | |||
Copyright © 1999-2021 by the D Language Foundation