[Issue 24388] Private overload of public function can be called from other modules

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 12 12:34:07 UTC 2024


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

--- Comment #4 from RazvanN <razvan.nitu1305 at gmail.com> ---
Also, I tried to fix this in the past, however, the issue is that private
functions that are part of an overload set can be called from templated
functions if they are passed via an alias template parameter. Some people argue
that this is a valid use case because a single private function can be called
from a templated function that way. For more info on this discussion see:
https://github.com/dlang/dmd/pull/13257

--


More information about the Digitalmars-d-bugs mailing list