[Issue 11048] Default arguments not taken into account when being called by pure functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 16 08:48:39 PDT 2013


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-09-16 08:48:37 PDT ---
So should the declaration of such a function be denied if it's pure, or should
only calls be denied where a global is used? E.g.:

// 1. ban this declaration?
void bar(int a = x) pure {}

// 2. or just this call?
bar();

// If #2, then this could be considered ok:
bar(1);

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