[Issue 5399] Return the result of a nonvoid function in a void function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 29 10:07:12 PDT 2011


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


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


--- Comment #10 from yebblies <yebblies at 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: -------


More information about the Digitalmars-d-bugs mailing list