[Issue 18866] Overload from opDispatch ignored in WithStatement
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 28 12:24:49 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18866
--- Comment #4 from Simen Kjaeraas <simen.kjaras at gmail.com> ---
> there would be absolutely no way of calling fun1() from within the WithStatement body
Sure there would. Assuming the same code as in comment 0, you would call the
global fun2 using .fun2();. You can test this by duplicating the line that
calls fun2 and adding a period - it will print 'global'. There's no reason to
assume that wouldn't work if an overload was available via opDispatch.
--
More information about the Digitalmars-d-bugs
mailing list