Prevent struct going into heap memory
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Thu Jul 31 21:32:39 UTC 2025
On 31/07/2025 8:42 PM, Atila Neves wrote:
> On Monday, 21 July 2025 at 02:10:09 UTC, Richard (Rikki) Andrew
> Cattermole wrote:
>> On 21/07/2025 2:03 PM, Paul Backus wrote:
>>> Problem is, some people believe it shouldn't. Hence this proposal to
>>> give those that want that "reliability" control to make it so.
>>>
>>> If there are people who believe that (a) the struct instance should
>>> be allocated with the GC, but (b) the GC should not be responsible
>>> for its cleanup, then those people are wrong, plain and simple.
>>
>> Ah no, they don't like the GC introducing unreliability to the cleanup.
>
> "Doctor, doctor, it hurts when I do this".
>
> The GC isn't even guaranteed to run, I don't know what the alternative
> would be.
The stack.
That is the point, one of the positions on this is to limit such structs
from ever leaving the stack, and the point of this proposal is to allow
those who want such guarantees to have it.
More information about the dip.ideas
mailing list