UFCS doesn't work in some cases

Danyal Zia via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 10 06:58:18 PDT 2014


On Tuesday, 9 September 2014 at 18:46:31 UTC, ketmar via 
Digitalmars-d-learn wrote:
> UFCS is not working for nested functions. this is not a bug, it 
> was
> designed this way. the same for 'with', i believe.
Apparently it is a bug that UFCS doesn't work with 'with' 
statement.
https://issues.dlang.org/show_bug.cgi?id=10349

> there is rationale. see http://dlang.org/function.html, UFCS 
> section.
Must have missed it before, thanks.


More information about the Digitalmars-d-learn mailing list