tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] enforced immutability - proposed research project


From: Barath Aron
Subject: Re: [Tinycc-devel] enforced immutability - proposed research project
Date: Mon, 18 Jan 2021 12:47:21 +0100

Hello,

On Mon, 18 Jan 2021 12:32:29 +0100 Bruno Haible <bruno@clisp.org> wrote:
>         ((struct data *) p)->x = 9; // Violation of immutability,
> crashes ...

If you do not allow such cast, you don't have to do anything at runtime.
Also, freestanding mode would work that way too.
But for that, you need a more complex type system.

Aron



reply via email to

[Prev in Thread] Current Thread [Next in Thread]