🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1258

Re: p = {1,0,0}

#1258
From: fir
Date: Mon, 02 Nov 2026 15:46
54 lines
2785 bytes
fir pisze:
> fir pisze:
>> bartc pisze:
>>> On 01/11/2026 13:32, fir wrote:
>>>> it is maybe banal but sometimes banal remarks also maybe should be 
>>>> stated as i dont remember if i even was posting on that
>>>>
>>>> the fact stat some cannot assign a structure like
>>>> this
>>>>
>>>> s = {x,y};
>>>>
>>>> seems rather silly (especially as structures can be assigned/copied)
>>>>
>>>> with this {0,0,1} at least c has a basic of ths vector/tupple support
>>>> and this 'native' support is quite standable..so its very weird it 
>>>> is 'blocked' from usage
>>>
>>>
>>> #include <stdio.h>
>>>
>>> typedef struct {int x,y;} T;
>>>
>>> int main(void) {
>>>      T s;
>>>      s = (T){10,20};
>>> }
>> this (T) is rather silly here - i mean its ok if you cast something 
>> but if no its like
>>
>> int a = (int) 20;
>>
>>
> 
> logically
> 
> x = {2,3};
> 
> as an assigment is kinda ok
> 
> if some told some need to have a different syntax for initialisation
> then in fact
> 
> 
> x = {2,3};
> 
> more fit to assigment than initialisation and some could tke something 
> other to denote nitialisation
> 
> 
lack of it i would even add to the list of top c annoyances - becouse 
indeed ts annoying..it also unlocks quite sane way of doing things in c 
as i said..it simply should be addad to c..but this c comitee is not 
much good in its decisions imo
Technical Details
Message-ID: <11cab85$30007$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> <11c7h7s$2149h$1@dont-email.me> <11c7kue$22j12$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: Mon, 2 Nov 2026 16:46:13 +0100
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <11cab85$30007$1@dont-email.me>
References: <11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me>
 <11c7h7s$2149h$1@dont-email.me> <11c7kue$22j12$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 02 Nov 2026 15:46:14 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3145735"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+liXYg4BnE0I9seL3O1cJpfgQwqluU6D0="; posting-host="ce6fef86b3aebbeff91418ef04e0ba5a"
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:fVfnrCDIaBRqhGBAHdc8CvhI+UY= sha256:iNq9yjqhNENCUL00xUyCbeXWBVQ7x09FKYOJugXla3o=
	sha1:5W0mSBZAkdLp4UC5nmVpUI2ZyP0= sha256:JjFAn7L08USyPU/v2A6bLuTC8kO+gD9eq9ocs1oP+8w=
In-Reply-To: <11c7kue$22j12$1@dont-email.me>