On Thu, 12 Apr 2012 13:44:36 -0400, Timon Gehr <[email protected]> wrote:

On 04/11/2012 06:08 PM, Russel Winder wrote:
Doing something along the lines of:

        const a = array ( filter! ... ) ;
        foreach ( i ; a ) { ... }

works fine.  Question 1 though is why I can't use immutable here, why I
have to use const.

'array' is not pure for some reason. This should be fixed.

It's implied pure if filter is pure. Templates are auto-pure if all the functions they call are pure. array should not be specifically marked pure.

This may be what you meant (i.e. it's not being implied as pure), but I want to be clear what it *should* be.

-Steve

Reply via email to