🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1448

Re: new neat for syntax discovered

#1448
From: fir
Date: Tue, 10 Nov 2026 20:48
105 lines
3102 bytes
fir pisze:
> 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)
> 
> 

ye it looks standabe..also note that c empowered with that could 
eventually more use terminology of temporal cascades than loops

'100 //anonymous temporal cascade

'i //i-indexed temporal cascade

'i=a..b //same, i-indexed from a to b

tab[]

'tab //temporal cascade of array values (more precisely cells not values 
as you may also assigns to cells

'tab = 10

int i = 200
const int tab_max = 300;
int tab[tab_max];

'tab = 'i+90 //assign first 200 cells of tab with values 90...289




> 
> 
> 
>>
>> ^a = ^b
>>
>> can do the work
>>
>>
>>
>>
>>
> 
Technical Details
Message-ID: <11d000b$2ga9n$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> <11cvv5h$2g07l$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:48:54 +0100
Organization: A noiseless patient Spider
Lines: 105
Message-ID: <11d000b$2ga9n$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>
 <11cvv5h$2g07l$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:49:15 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2631991"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+qQpPyvmzSYJzV+xEYPJa+aY+bKSbKpnU="; 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:+dh01aSRokJMqQMpP55T7tHlj6A= sha256:3cFMaX/PVrWHQmwkYglgWZh1HT55w0LOpve5JgG3TnE=
	sha1:EGt5ml2mfbdx+83bkShmPrusrJU= sha256:CiQDk8TQu5em/6Asvbwd1I/3HJ550aJNHADeyAe/yPo=
In-Reply-To: <11cvv5h$2g07l$1@dont-email.me>