value of 'this' is not know at CT for typeof(this)

Dechcaudron no-reply at no-email.com
Fri Jan 26 20:08:19 UTC 2018


So I'm trying to get this to compile:
```
static foreach (alias member; getSymbolsByUDA!(typeof(this), 
Serialize))
                 serializeMember!member(bundle);
```
And I'm getting the following error: value of 'this' is not known 
at compile time
for the line on top. typeof(this) to get the type of the calling 
object seems to work everywhere else (this happens inside a 
method definition inside a mixin template). Can anyone tell me 
why?


More information about the Digitalmars-d-learn mailing list