How to override impure function from pure function

Nicholas Wilson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Dec 12 22:17:19 PST 2016


On Tuesday, 13 December 2016 at 05:13:01 UTC, Nikhil Jacob wrote:
> I mistook the original statement to mean that an impure 
> function can be called from a pure function with some manual 
> overrides.
>
> Thank you for the clarification.

Yeah you can't do that, except in a debug statement. You can 
however cheat with SetFunctionAttributes (from std.traits).


More information about the Digitalmars-d-learn mailing list