Is inc function part of the library ?

drug drug2004 at bk.ru
Thu May 13 15:13:16 UTC 2021


13.05.2021 16:30, Alain De Vos пишет:
> Shouldn't the compiler error it is not pure ?
> Or have I a wrong understanding of pure or the compiler.

The function is pure. If you call it several times passing the same 
argument it will return the same result.

https://run.dlang.io/is/futqjP


More information about the Digitalmars-d-learn mailing list