🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1383

Re: p = {1,0,0}

#1383
From: fir
Date: Sun, 08 Nov 2026 15:12
106 lines
4144 bytes
fir pisze:
> fir pisze:
>> fir pisze:
>>>>
>>>
>>> C ad A arestructures and functions  at once
>>>
>>> C() {2}  (Or
>>> C{2} is the same as you may skip () in definiton if they are empty)
>>
>>
>> note normally it could be defined
>>
>> int C() {C=2}
>>
>>
>> so now when you write
>>
>> printf("%d", C*C);
>>
>> then C may be not set it rather printf 0 or random stack value
>>
>> but the
>>
>> C{2}
>>
>> is a nice shortcut also
>>
>> those are all discovered ideas and some details i mat yet all change
>> as those dicoveries open some space for some decisions
> 
> 
> I could say its not concise becuse say you got such
> 
> int C {clib_rand()}
> 
> now C() calls clib_rand() but discards a value
> and C as value has unset int value even after C() call
> (and its possibly somewhat good)
> 
one coud say that if

int a (int b)
{
    a = b;
}


is liek

"int a"(int b)

ile float f(int b)
is like "float f"(int b)

then

C(int a)

is like void C(int a)

thus C{2} is void C{2} then C shouul yeild to void
and thise are kinda rgiht arguments

but c is not only variable its alos a structure

C(int x)
{
   int a;
  int b;
  int c;
}


is like struct C {int a,b,c} so in this view c{2} is more like one 
element structure that contains 2 so probably c{2} is standable but this 
arguments above is to reember maybe

> so
> 
> C{2} whan called C() should do nothing (ass calling 2; do nothing)
> but as read should not have a value (not 2) but C{2} seem nice to have 
> as 2 so maybe it needs to have some additional rules to define or change
> the above
> 
> putting the rule that
> 
> C{} should have value of what inside has as value is not quite good 
> becouse say
> 
> C(int i) {i++; i++; i++; i++; -1,0,-4}
> 
> would have 'volatile' value  like {2,3,4,5, -1,0,4}  which seem kinda 
> nonsence (in some way)
> 
> i dont know maybe just code lines could be skipped so in the above
> C has a value of {-1,0,4}
> 
> (and in those all things i wrote before it was kinda ssumed in facy 
> (though in fact i was not considered constants there)
> 
> 
> 
> 
> 
Technical Details
Message-ID: <11cq3hb$dnf9$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me> <11cae5m$318tq$1@dont-email.me> <11calrt$34gq3$1@dont-email.me> <11carqs$36m0o$1@dont-email.me> <11cb4hs$3a13l$1@dont-email.me> <11ccnkq$3pjhd$1@dont-email.me> <11ccobd$3ps4l$1@dont-email.me> <11cctee$3rtjh$1@dont-email.me> <11ccu0t$3s54f$1@dont-email.me> <11ccv4n$3sjn5$1@dont-email.me> <11cd05l$3t1er$1@dont-email.me> <11cd0q3$3ta28$1@dont-email.me> <11cd1vs$3tpfp$1@dont-email.me> <11cnve1$3ofei$1@dont-email.me> <11co8d4$3rpvm$1@dont-email.me> <14be9ea5-918f-5871-1bba-11e29e6e25d5@gmail.com> <11coqot$1236$1@dont-email.me> <11cplsf$8nc4$1@dont-email.me> <11cpnbb$97kp$1@dont-email.me> <11cpo21$9fji$1@dont-email.me> <11cpov5$9q2h$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!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: p = {1,0,0}
Date: Sun, 8 Nov 2026 16:12:30 +0100
Organization: A noiseless patient Spider
Lines: 106
Message-ID: <11cq3hb$dnf9$1@dont-email.me>
References: <11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me>
 <11cae5m$318tq$1@dont-email.me> <11calrt$34gq3$1@dont-email.me>
 <11carqs$36m0o$1@dont-email.me> <11cb4hs$3a13l$1@dont-email.me>
 <11ccnkq$3pjhd$1@dont-email.me> <11ccobd$3ps4l$1@dont-email.me>
 <11cctee$3rtjh$1@dont-email.me> <11ccu0t$3s54f$1@dont-email.me>
 <11ccv4n$3sjn5$1@dont-email.me> <11cd05l$3t1er$1@dont-email.me>
 <11cd0q3$3ta28$1@dont-email.me> <11cd1vs$3tpfp$1@dont-email.me>
 <11cnve1$3ofei$1@dont-email.me> <11co8d4$3rpvm$1@dont-email.me>
 <14be9ea5-918f-5871-1bba-11e29e6e25d5@gmail.com>
 <11coqot$1236$1@dont-email.me> <11cplsf$8nc4$1@dont-email.me>
 <11cpnbb$97kp$1@dont-email.me> <11cpo21$9fji$1@dont-email.me>
 <11cpov5$9q2h$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 08 Nov 2026 15:12:44 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="450025"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18bQ5GHWiGUwYzqnQyL7KjIdyColTzPnL4="; posting-host="9324e5ef4bfce41eb124a57241b8befc"
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:26CWuVbon1qYE52d1rizqcj3JEg= sha256:42O+PpT2oCgC9TcafTLM7TsnnQBqTlTZyUY/U6QuAEk=
	sha1:AbQG327jTTXKboMRyxqOdDSBkfs= sha256:sCAnwHZBpkixfIZJr6zDb+Q0g6g5e2x0JMN64nEgX0g=
In-Reply-To: <11cpov5$9q2h$1@dont-email.me>