[Issue 1975] void func return value not checked

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 6 02:12:31 PDT 2008


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


matti.niemenmaa+dbugzilla at iki.fi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from matti.niemenmaa+dbugzilla at iki.fi  2008-04-06 04:12 -------
This is quite intentional.
http://digitalmars.com/d/2.0/statement.html#ReturnStatement says: "Expression
is allowed even if the function specifies a void return type. The Expression
will be evaluated, but nothing will be returned."


-- 



More information about the Digitalmars-d-bugs mailing list