Map Purity

jmh530 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jun 28 09:28:17 PDT 2015


On Sunday, 28 June 2015 at 16:15:31 UTC, Marc Schütz wrote:
>
> Secondly, `map` is indeed a template function, as you write. 
> For templates functions, the compiler infers many properties, 
> including purity.

Thanks for the reply. Two follow ups: 1) Does labeling a template 
as pure matter if the compiler infers it anyway? 2) Does the 
compiler also infer anything for @safe/nothrow in templates?




More information about the Digitalmars-d-learn mailing list