[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 05:48:10 PST 2011


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


nfxjfg at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nfxjfg at gmail.com


--- Comment #3 from nfxjfg at gmail.com 2011-01-02 05:45:57 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.

Wow, D is really full of idiocy, isn't it?

If you wanted to facilitate that, you'd just allow declaring void variables and
all that. I've written generic code where _that_ would have been quite useful.
But returning non-void values in void functions? Garbage language feature.

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