pragma(explicit_gc)
Atila Neves
atila.neves at gmail.com
Mon Feb 3 18:42:23 UTC 2025
On Thursday, 2 May 2024 at 01:45:31 UTC, Timon Gehr wrote:
> Often, GC is nice but collections should be avoided in an inner
> loop. `@nogc` is too restrictive because may be fine to e.g.,
> allocate an `Exception` before throwing it, and programmers are
> aware that such allocations are happening.
>
> [...]
Isn't the answer here to "fix" Exceptions under `@nogc`?
More information about the dip.ideas
mailing list