[Issue 8122] opDispatch doesn't forward opCall

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 1 13:32:04 UTC 2022


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |WONTFIX

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
No, I don't think opDispatch should also swallow other overloading operators.
Consider that there might be valid operator overloads or functions that are
declared but are called wrongfully. If opDispatch swallows everything then it
becomes hard to track what happens with other methods.

If that is the desired behavior you can simply alias opCall to opDispatch.

--


More information about the Digitalmars-d-bugs mailing list