named arguments, string interpolation, please stop.
Walter Bright
newshound2 at digitalmars.com
Sat Jan 13 18:34:31 UTC 2024
On 1/11/2024 2:49 PM, Guillaume Piolat wrote:
> pure is especially annoying because no escape hatch.
There is. You take a pointer to the pure code, can forcibly cast it to an impure
pointer. However, that only works in @system code. There's a `pureMalloc`
somewhere in the library that does this.
The same technique can be used to remove @nogc.
But when one subverts the type system like that, one must own the consequences.
BTW, `pure` is not enforced within `debug` blocks. This is handy so they can be
instrumented with things like `printf`.
More information about the Digitalmars-d
mailing list