On 10/07/14 22:48, anonymous wrote:

I don't think this is a bug.

Remember that enums have copy-paste semantics. So, this is the
same as comparing literals from different modules. Apparently, in
the same module, a duplicate string literal is optimized out. But
that's not done across the module boundary. I'd guess that's
because of the separate compilation model.

That seems to be the case. I just got confused about the different behavior when put in a single or two modules.

--
/Jacob Carlborg

Reply via email to