[Issue 10819] Invalid comparison for equality of lambda functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 30 15:41:48 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10819


hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx


--- Comment #6 from hsteoh at quickfur.ath.cx 2013-08-30 15:41:46 PDT ---
This is probably total overkill, but what about instead of mangling to __lambda
+ an incrementing integer, replace the integer with the SHA hash of the
lambda's AST tree? As Andrei said, we cater only to the case where the two
lambdas are token-for-token identical, because the general problem of
equivalence between two arbitrary lambdas is uncomputable.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list