[Issue 4664] Lambdas default arguments problems

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 17 16:42:11 PDT 2010


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


Jonathan M Davis <jmdavisProg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmail.com


--- Comment #1 from Jonathan M Davis <jmdavisProg at gmail.com> 2010-08-17 16:42:10 PDT ---
I would think that it would be better if the two didn't conflict as opposed to
getting rid of default parameters. It looks like they're being turned into the
same function when they're not (at least conceptually) - one because they have
different default parameters, and two because they're lambdas, not functions
with names.

Now, assuming that it can't be fixed so that these functions are actually
separate like you'd think that they'd be, then it would probably be better to
disallow default arguments, but I'd argument that this is a compiler bug rather
than a bug in the language.

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