[Issue 23941] [DIP1000] Overloading by scope should be allowed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 23 08:38:47 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23941

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
Looks like the problem is in the argumentMatchParameter function, which doesn't
check for scope parameters.

But I'm a bit concerned that changing this may mess up scope inference, which
occurs after an overload is selected. Changing this may destabilize the
language.

I'm also skeptical of the utility of overloading based on `scope`. Maybe this
pattern just doesn't make sense.

--


More information about the Digitalmars-d-bugs mailing list