[Issue 3572] declaring pure function with void return type should be compile time error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 3 18:50:46 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=3572
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #7 from Kenji Hara <k.hara.pg at gmail.com> 2013-02-03 18:50:45 PST ---
In current, we can declare a pure function which has "weak" purity.
pure void foo(int* p, out string s, ref int[] arr);
All results are returned through its parameters.
So, returning void itself has no problem in pure functions.
--
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