Thread overview | |||||
---|---|---|---|---|---|
|
April 14, 2008 [Issue 1993] New: Error calling vararg delegate with null | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1993 Summary: Error calling vararg delegate with null Product: D Version: 1.028 Platform: PC OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: chris@dprogramming.com Note the comments; the one is causing an error but should work: void blah(bool delegate(char[][] words ...) callback) { callback("foo", "bar"); // OK callback("foo"); // OK //callback(null, "bar"); // DMD 1.028: Error: expected 1 arguments, not 2 callback(cast(char[])null, "bar"); // OK callback((char[]).init, "bar"); // OK } -- |
July 03, 2011 [Issue 1993] Error calling vararg delegate with null | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1993 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |yebblies@gmail.com Platform|x86 |All OS/Version|Windows |All --- Comment #1 from yebblies <yebblies@gmail.com> 2011-07-03 13:44:14 EST --- https://github.com/D-Programming-Language/dmd/pull/195 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 12, 2011 [Issue 1993] Error calling vararg delegate with null | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1993 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-10-12 15:37:23 PDT --- https://github.com/D-Programming-Language/dmd/commit/26bee8fc97a796b738f434503ce1ce122c7b011d https://github.com/D-Programming-Language/dmd/commit/b666b75c8d5a2d4aeef0c27e8fab382f0e04b687 -- 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