On Monday, 18 June 2018 at 19:26:47 UTC, Steven Schveighoffer wrote:
On 6/18/18 2:58 PM, aliak wrote:
[...]

It's the same in the fact that your call is silently switched to a different call. However, in the current syntax, an external entity CANNOT override a local function. When you call the nested function, it's the nested function, no matter what else occurs outside (even in the local module). There is no precedent for local functions to be overridden by module-level functions.

[...]

Ah I see. So it's basically that locals take priority, but if you allow them to UFCS then that's not true anymore because members need to take priority.

Ok yep, that makes sense. Thanks !

Reply via email to