December 18, 2007 [Issue 1740] New: Full closure problem | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1740 Summary: Full closure problem Product: D Version: 2.008 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: davidl@126.com import std.stdio; void func(string delegate() dg) { dg(); } void main() { string[] k=["adf","AsdfadSF","dfdsfassdf"]; foreach(d;k) { writefln(d); func(delegate string() {assert(d!="");return d;}); } } runtime result: Error: AssertError Failure abc(13) This make delegate in this case useless. -- |
January 03, 2008 [Issue 1740] Full closure problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1740 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bugzilla@digitalmars.com 2008-01-02 19:52 ------- Fixed dmd 2.009 -- |
Copyright © 1999-2021 by the D Language Foundation