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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 2 06:26:49 PST 2011


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


Iain Buclaw <ibuclaw at ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at ubuntu.com


--- Comment #4 from Iain Buclaw <ibuclaw at ubuntu.com> 2011-01-02 06:24:38 PST ---
(In reply to comment #2)
> It is not a dangerous corner case, it is a deliberate design choice. It is
> meant to facilitate writing generic code so that the same code can be generated
> for void and non-void return values.

Just for clarification, so you allow this, but the return value is always
ignored? (ie: 0)

-- 
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