[Issue 2939] lazy evaluation not invoked for lambda function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 5 19:58:42 PDT 2009


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





------- Comment #8 from cristian at zerobugs.org  2009-05-05 21:58 -------
I was able to test that my fix works:

            // Convert lazy argument to a delegate
            if (p->storageClass & STClazy)
            {
            if (arg->type->ty != Tdelegate) // DO NOT "DELEGATIZE" TWICE
                        arg = arg->toDelegate(sc, p->type);
            }

It is a trivial one-liner patch but this bug needs to be voted up to make it to
Walter's radar!


-- 



More information about the Digitalmars-d-bugs mailing list