Complex numbers are harder to use than in C

Marduk via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 22 10:57:17 PST 2016


On Sunday, 20 November 2016 at 11:46:04 UTC, Marc Schütz wrote:

> Try placing it outside the function. Method call syntax doesn't 
> work with nested functions, see here:
>
> https://dlang.org/spec/function.html#pseudo-member
>
> "The reason why local symbols are not considered by UFCS, is to 
> avoid unexpected name conflicts."

Aha! Now it works. Thank you for the explanation.


More information about the Digitalmars-d-learn mailing list