pureity of closures

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 24 10:16:51 PDT 2015

On Monday, 23 March 2015 at 09:45:41 UTC, Dicebot wrote:

> 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)

Yeah that was my guess as well.

More information about the Digitalmars-d mailing list