CTFE can't replace @properties

12345swordy alexanderheistermann at gmail.com
Thu Oct 8 15:21:57 UTC 2020


Reason being that it doesn't support binary operators nor unary 
operators, by using the two functions. It a bad idea to allow 
ctfe to implement them implicitly as that could lead to 
unintentional design by the programmer.


It would be better to implement properties properly and to 
deprecate the @properties attribute.

-Alex


More information about the Digitalmars-d mailing list