🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1444

Re: new neat for syntax discovered

#1444
From: fir
Date: Tue, 10 Nov 2026 20:26
45 lines
2004 bytes
fir pisze:
> 
>> for example
>>
>> int count = 5;
>>
>> tab[^count]=tab[^count+1];
>>
>>

well some here could say that

^count tab[count]=tab[count+1]

is more clear (possibly)

though some could say also  note

enum {a_max=100};
int a[a_max];

enum {b_max=200};
int b{b_max];

a[^a_max]=b[^b_max]

is better if we assume that evaluation breaks on shorter one

otherwise one would need write

  ^count = min(a_max, b_max)   {a[count]=b[count]}

this is worse becouse counting that min is not needed

though indeed this for in side the tables a[^a_max]=b[^b_max]
maybe dont looks best..though as i said probably

^a = ^b

can do the work




Technical Details
Message-ID: <11cvume$2frhm$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11cv6t1$2694b$1@dont-email.me> <11cvtks$2feht$1@dont-email.me> <11cvtus$2fi21$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: fir <profesor.fir@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: new neat for syntax discovered
Date: Tue, 10 Nov 2026 21:26:32 +0100
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <11cvume$2frhm$1@dont-email.me>
References: <11cv6t1$2694b$1@dont-email.me> <11cvtks$2feht$1@dont-email.me>
 <11cvtus$2fi21$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 10 Nov 2026 20:26:54 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2616886"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19N2cmzUXPtWDP0MjUpRqPxM/TVKlZaxX8="; posting-host="5e24ef116842e5f7dade8922bc1e4cca"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101
 Firefox/140.0 SeaMonkey/2.53.24
Cancel-Lock: sha1:5m8TDFPLLEDc7j1tq+jJMaelsa8= sha256:RMu+YFkkQ681h47pZvy44B8rjfM6uIB1RBYu1oWqIB8=
	sha1:HxSpygJvhQnx0c8IbpkNswDQ/oQ= sha256:iU+xwHWMDK6Vcp+UjOhlNLm5NR0fzLUnXP5vWt7iWqc=
In-Reply-To: <11cvtus$2fi21$1@dont-email.me>