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: Bruno Haible
Subject: Re: [Tinycc-devel] enforced immutability - proposed research project
Date: Tue, 19 Jan 2021 06:29:26 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; )

Elijah Stone wrote:
> The problem is, without a fixed offset between the mutable and immutable 
> spaces, certain desirable semantics become harder to implement.  For 
> example, we want mutable and immutable references to the same object to 
> compare equal.

True. A comparison

  struct data *wp;
  struct data const *p;
  wp == p

would, in some cases, need to be implemented as

  immfreeze (wp) == p

Bruno




reply via email to

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