How to fake pure

Guillaume Piolat first.nam_e at gmail.com
Tue Apr 8 15:07:45 UTC 2025


On Tuesday, 8 April 2025 at 14:00:56 UTC, Jonathan M Davis wrote:
> Of course, I'm also increasingly of the opinion that pure was a 
> mistake in general, because it does almost nothing in practice 
> but routinely doesn't work with straightforward code - and it's 
> definitely one of those attributes which gets in way when code 
> needs to be refactored


And you really need pureMalloc to be applicable, hovewer it's a 
lie since the GC and malloc obviously have global state.


More information about the Digitalmars-d-learn mailing list