[Issue 8258] Delegates do not respect default parameters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 17 03:23:55 PDT 2012


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


Mike Parker <aldacron at gmail.com> changed:

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


--- Comment #1 from Mike Parker <aldacron at gmail.com> 2012-06-17 03:26:08 PDT ---
Ah, well, I posted that in the Derelict forum in case someone wanted to try to
minimize it. I don't know if it compiles as-is or not, but I've had two
Derelict bug reports now with the following error using dmd master:

----
Error: expected 3 function arguments, not 2 
----

In each case, the offending line is a call to a delegate that accepts a default
parameter. I didn't want to report a bug until there was a reduced test case,
but I don't want to mess around with compiling dmd from git. So I posted that
piece of code hoping that a Derelict user would try it out with their dmdgit
version to see what happens. It may, or may not, trigger the regression. I've
no idea.

I was waiting for the beta release if no one got to it before then. But, since
it's here, if anyone can see if the code works or not with git dmd...

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