Generic code: @autoconst, @autopure, @autonothrow

Tomek Sowiński just at ask.me
Mon Aug 30 12:16:15 PDT 2010


Dnia 30-08-2010 o 21:10:10 Tomek Sowiński <just at ask.me> napisał(a):

> How about reduce!fun(range)? It's pure/nothrow when fun is pure/nothrow.  
> Plenty of std.algorithm would benefit.

Eh, nevermind. popFront() must mutate the range so it can't be pure. Need  
to get some sleep...


More information about the Digitalmars-d mailing list