[Issue 3572] declaring pure function with void return type should be compile time error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 4 15:52:04 PST 2009


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


David Simcha <dsimcha at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dsimcha at yahoo.com


--- Comment #2 from David Simcha <dsimcha at yahoo.com> 2009-12-04 15:52:01 PST ---
?????  Why would you allow out parameters in a pure function?  This seems
reasonable for simple value types (ints, floats, etc.), but when you start
passing objects in, you start allowing the modification of whole object
subgraphs from pure functions.  This makes no sense.

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