๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1446

Re: new neat for syntax discovered

#1446
From: fir
Date: Tue, 10 Nov 2026 20:34
77 lines
2445 bytes
fir pisze:
> 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..

maybe its a mater of takin this 'for' sign

x=100

tab['x]=tab['x+1]

forexample this above looks better (^ is fmainy for ilustration as it 
oryginated as a power)

tab[^x]=tab[^x+1]

a['a_max] = b['b_max]


'100 foo()

'i foo(i)
foo('i)

int x=100, y=200;
tab[''y]['x]=0;


printf("%d", 'i=10..20)





> 
> ^a = ^b
> 
> can do the work
> 
> 
> 
> 
> 
Technical Details
Message-ID: <11cvv5h$2g07l$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> <11cvume$2frhm$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:34:36 +0100
Organization: A noiseless patient Spider
Lines: 77
Message-ID: <11cvv5h$2g07l$1@dont-email.me>
References: <11cv6t1$2694b$1@dont-email.me> <11cvtks$2feht$1@dont-email.me>
 <11cvtus$2fi21$1@dont-email.me> <11cvume$2frhm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 10 Nov 2026 20:34:57 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2621685"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18m77hvb6FDIt9d9tEaP/VV77TbaBBTY2g="; 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:jvZhOtExPBldnJwDAWnVSilg7V8= sha256:c3GcFcFKW93uQgeYmpHoh02Ho1X/i8uAOkzGFNKJFe0=
	sha1:zLFX5IiZXt5Tx6WT4sYox3heBtk= sha256:3MkJWzbanp4cCkRDfAeat/qNbAJwuu4L5H8EzTzbUXk=
In-Reply-To: <11cvume$2frhm$1@dont-email.me>