Named Arguments Status Update - Overloading by name
Timon Gehr
timon.gehr at gmx.ch
Thu Jan 11 20:46:18 UTC 2024
On 1/11/24 20:21, Walter Bright wrote:
>
> It's ok if the error is detected after instantiation. It can be detected
> by testing to see if the mangled signature (which is generated for the
> type of the function) already exists.
As I wrote in another post, I do not think this works, because one
instantiation may be in one compilation unit while the other
instantiation is in another compilation unit. They never exist both at
once in the same compiler invocation but they will have the same mangled
name yet be different.
More information about the Digitalmars-d
mailing list