What are (were) the most difficult parts of D?
Ali Çehreli
acehreli at yahoo.com
Thu May 12 19:50:41 UTC 2022
On 5/12/22 12:00, Paul Backus wrote:
> Good news: starting from DMD 2.099, this error message has been
> reworded. Instead of "cannot deduce function...". it now says:
>
> Error: none of the overloads of template `std.algorithm.iteration.sum`
> are callable using argument types `!()(int[3])`
Much better.
An idea: The compiler should be able to detect static arrays and also
suggest slicing with something like "slicing as in `arr[]` might work".
Ali
More information about the Digitalmars-d-learn
mailing list