chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] Pessimizing undefined behavior


From: megane
Subject: Re: [Chicken-hackers] Pessimizing undefined behavior
Date: Thu, 04 Apr 2019 21:36:57 +0300
User-agent: mu4e 1.0; emacs 25.1.1

megane <address@hidden> writes:

> address@hidden writes:
>
>>>
>>> Nothing changes if we statically assign these values, the user still
>>> cannot rely on undefined to be either true or false.
>>
>> Once you give a fixed meaning, even by doing an optimization based
>> on this meaning, users _will_ start to rely on it. At that stage it isn't
>> undefined anymore.
>
> There's two ways I can think of getting warnings, then.
>
> a) Easy version. Randomly choose true or false at each if. Use some
> method that keeps the builds deterministic. This wouldn't assign any
> more fixed meaning for undefined than there currently is.

It would have to be constant true/false for the whole compilation.
Otherwise, bugs.



reply via email to

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