[Issue 11046] [enh] Pure functions with default and out parameters are allowed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 15 22:54:02 PDT 2013


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



--- Comment #7 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-09-15 22:53:56 PDT ---
(In reply to comment #6)
> > I think the problem is this:
> 
> _That_ is a bug and should be reported as such, but it's different from arguing
> that pure functions should not be allowed to have out parameters with default
> arguments, which is what this enhancement request was asking for. It also has
> nothing to do with out parameters, unlike this enhancement request.
> 
> I just reported the issue: Bug# 11048

The issue was _not_ about banning all pure functions with out parameters for
which there are default values, but about not taking into account module scope
of default argument. This is essentially the same issue (dmd does not check
status) you reported but with a better test case.

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