On Wed, 06 Apr 2011 21:42:35 +0200, Trass3r <u...@known.com> wrote:

Am 06.04.2011, 20:40 Uhr, schrieb Simen kjaeraas <simen.kja...@gmail.com>:
Yup. In theory, any immutable Foo declared at module scope (and likely
also those at static class/struct scope) could be elided by the linker
if it not used anywhere, but Optlink does not do that.

Ok, I guess the hack works by replacing every occurrence of the constant identifier in the AST with the initializer part of "enum foo = initializer;"?

So there would be no reason to keep enum manifest constants if this Optlink bug was fixed?

Correct on both counts.

--
Simen

Reply via email to