Thread overview | ||||||
---|---|---|---|---|---|---|
|
February 05, 2011 [Issue 5527] New: Bug in http://www.digitalmars.com/d/2.0/ctod.html#closures ? | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5527 Summary: Bug in http://www.digitalmars.com/d/2.0/ctod.html#closures ? Product: D Version: unspecified Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: websites AssignedTo: nobody@puremagic.com ReportedBy: christian@dr-maurer.eu --- Comment #0 from Dr. Christian Maurer <christian@dr-maurer.eu> 2011-02-05 03:04:43 PST --- Dear Community, Applying "dmd" (version 2.051 for Linux) to a source file xxx.d with the content of the example "Dynamic Closures", with "followed by "void main () { ; }", I get the following error messages (where n = number of the line "c.apply (comp_max)" in it): xxx.d(n): Error: function xxx.func.comp_max (int i) is not collable using argument types () xxx.d(n): Error: expected 1 function arguments, not 0 xxx.d(n): Error: function xxx.Collection.apply (void delegate(int) fp) is not collable using argument types (void) xxx.d(n): Error: cannot implicitly convert (comp_max()) of type void to void delegate(int) Anybody got an idea, of what could be wrong? With kind regards, Christian -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 05, 2011 [Issue 5527] Bug in http://www.digitalmars.com/d/2.0/ctod.html#closures ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dr. Christian Maurer | http://d.puremagic.com/issues/show_bug.cgi?id=5527 --- Comment #1 from Dr. Christian Maurer <christian@dr-maurer.eu> 2011-02-05 12:20:56 PST --- Dear Community, forgot to explicitly remark, that my question was put with regard to the >first< example, not to the one with function literals (although from the context with the definition of the line number, that should be obvious). Regards, Christian -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 21, 2012 [Issue 5527] Bug in http://www.digitalmars.com/d/2.0/ctod.html#closures ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dr. Christian Maurer | http://d.puremagic.com/issues/show_bug.cgi?id=5527 --- Comment #2 from github-bugzilla@puremagic.com 2012-01-20 17:42:43 PST --- Commit pushed to https://github.com/D-Programming-Language/d-programming-language.org https://github.com/D-Programming-Language/d-programming-language.org/commit/04692101a508f526f8361e3f148bfef33deb12ab ticket 5527 - Bug in http://www.digitalmars.com/d/2.0/ctod.html#closures -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 21, 2012 [Issue 5527] Bug in http://www.digitalmars.com/d/2.0/ctod.html#closures ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dr. Christian Maurer | http://d.puremagic.com/issues/show_bug.cgi?id=5527 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation