November 22, 2016 Re: Complex numbers are harder to use than in C | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ilya Yaroshenko | On Sunday, 20 November 2016 at 12:08:23 UTC, Ilya Yaroshenko wrote:
> You can use builtin complex numbers (cfloat/cdouble/creal). The idea of std.complex is wrong . Mir GLAS uses builtin complex numbers and I don't think they will be really deprecated. --Ilya
Good to know! The builtin syntax is more reasonable than std.complex.
|
November 22, 2016 Re: Complex numbers are harder to use than in C | ||||
---|---|---|---|---|
| ||||
Posted in reply to Marc Schütz | 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.
|
Copyright © 1999-2021 by the D Language Foundation