November 25, 2004 const evaluation order | ||||
---|---|---|---|---|
| ||||
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 fails to compile: const int c = b + 1; const int a = 1; const int b = a + 1; reordering solves the problem: const int a = 1; const int b = a + 1; const int c = b + 1; test cases: http://svn.kuehne.cn/dstress/run/const_05.d http://svn.kuehne.cn/dstress/run/const_06.d Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.9.9 (GNU/Linux) iD8DBQFBpfmJ3w+/yD4P9tIRAudIAKCpMAdzej9+oQtv1FjcYXZYHe4BqACfasXB GhOeAMKH6mlG9bYAngymdhI= =+gpi -----END PGP SIGNATURE----- |
Copyright © 1999-2021 by the D Language Foundation