Module function conflicting with reserve function
Peter Campbell
peteypoo at pm.me
Wed Nov 7 21:44:15 UTC 2018
On Tuesday, 6 November 2018 at 21:29:17 UTC, Stanislav Blinov
wrote:
> On Tuesday, 6 November 2018 at 21:19:29 UTC, Peter Campbell
> wrote:
>
>> Given your second example that makes me think that, because
>> object functions are provided by the runtime without me
>> explicitly importing it, this is likely only an issue for
>> object functions? Or can this behaviour happen with any free
>> functions with the same name but completely different
>> parameter types?
>
> Not with completely different parameter types, no. But it can
> happen with functions imported from different modules, as
> they're from different overload sets. There's an example in
> that Overload Sets section of the spec.
I see what you both mean now and understand what's going on.
Thanks for clearing it up
More information about the Digitalmars-d-learn
mailing list