GC.malloc is pure - wat

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 24 12:12:02 PDT 2015


On Friday, 24 April 2015 at 18:48:43 UTC, Steven Schveighoffer 
wrote:
> I think you are thinking of @safe-ty. malloc and free can be 
> pure, but must be contained properly.
>
> purity when it comes to mutable data is a tricky thing.
>
> -Steve

No, it should not be pure because it alter global state in a 
manner visible to the program.


More information about the Digitalmars-d mailing list