June 29, 2011 [Issue 5399] Return the result of a nonvoid function in a void function | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5399 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #10 from yebblies <yebblies@gmail.com> 2011-06-30 03:02:12 EST --- (In reply to comment #9) > What's wrong with > lazyFunc( { i++; return;}) > ? For some reason I was thinking this would skip the 'expression has no effect' errors. https://github.com/D-Programming-Language/dmd/pull/174 Fixing this found a bug in phobos. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 09, 2011 [Issue 5399] Return the result of a nonvoid function in a void function | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5399 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED Severity|major |enhancement --- Comment #11 from Walter Bright <bugzilla@digitalmars.com> 2011-10-09 14:54:12 PDT --- https://github.com/D-Programming-Language/dmd/commit/c942d51c8b1103d5ce4c3dfc03ae77c07c687cd6 -- 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