Why is align() on structures not allowed within unit-test code

bearophile bearophileHUGS at lycos.com
Sun Dec 4 09:34:14 PST 2011

Timon Gehr:

> The reason is that it is parsed as function-local and that DMD's parser 
> for some strange reason uses different grammar rules for declarations 
> when inside a function body. You could maybe file a bug report.



More information about the Digitalmars-d-learn mailing list