alias c=mixin(expr); disallowed, why?

Timothee Cour thelastmammoth at gmail.com
Sat Jun 22 12:52:00 PDT 2013


Is there a reason the language spec disallows this?

----
void main(){
auto a=mixin("1");//OK
alias b=a;//OK
mixin("alias c=a;");//OK
// alias c=mixin("a");//NG : Error: basic type expected, not mixin
}
----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20130622/c304c92d/attachment.html>


More information about the Digitalmars-d-learn mailing list