Sujet : Re: C23 thoughts and opinions
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.cDate : 04. Jun 2024, 06:25:22
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240603221858.172@kylheku.com>
References : 1 2 3 4 5 6 7 8
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2024-06-03, bart <
bc@freeuk.com> wrote:
Actually, somebody could write a loop like this:
>
for(int i=0;;++i)
>
Is that an endless loop or not?
Some compilers may recognize it as assertion which says "this code shall
not be reached".
At this point someone will suggest a macro this:
>
#define forever for(;;)
>
All that suggest sto me is that the language *needs* an explicit endless
loop!
Nope!
#define ev
#define e
#define r
for(ev;e;r) ...
:)
-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca