pureity of closures

Shammah Chancellor via Digitalmars-d digitalmars-d at puremagic.com
Fri Mar 27 07:29:05 PDT 2015

On 2015-03-23 09:45:39 +0000, Dicebot said:

> I think this was not intended and is simply a side effect of limited D 
> call graph analysis. Relaxing that limitation makes sense to me because 
> unused impure function can be used for compile-time reflection or 
> returned from pure function as a result (you need to ensure it does not 
> capture pure functions as closure context in that case)

Pure functions returning impure functions.  *BOOM* My brain just exploded.


More information about the Digitalmars-d mailing list