[Issue 14894] mangling of mixins and lambdas is not unique and depends on compilation flags

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 20 21:52:46 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=14894

--- Comment #12 from Martin Nowak <code at dawg.eu> ---
(In reply to uplink.coder from comment #11)
> We need AST-Node hashing anyhow.
> but that won't fix the .di files problem, as the hash will be different from
> the impl.... or does the source have to be available ?

Yes, source code for lambdas and mixins should be available in situations where
we use such numbers, so either of them could be hashed.
Literal source code is only available during parsing, so hashes would need to
be computed eagerly during the performance sensitive lexing. A hash on the AST
could be computed lazily. We already have `expressionHash` in dmd, but that
depends on allocation addresses.

--


More information about the Digitalmars-d-bugs mailing list