[Issue 15248] Function in current module is not allowed to overload imported function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 13 07:52:40 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=15248
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |razvan.nitu1305 at gmail.com
Resolution|--- |INVALID
--- Comment #4 from RazvanN <razvan.nitu1305 at gmail.com> ---
https://dlang.org/articles/hijack.html#overload-sets correctly describes the
mechanism. In your example, round is preferred so that any function that is
introduced by std.math does not hijack the execution. Using the alias to
introduce std.math.round is not a workaround but the de facto standard of
merging overload sets.
This is the described, correct behavior, therefore this bug report is not
valid.
--
More information about the Digitalmars-d-bugs
mailing list