🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1245

Re: p = {1,0,0}

#1245
From: fir
Date: Sun, 01 Nov 2026 15:13
51 lines
2432 bytes
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



Technical Details
Message-ID: <11c7kue$22j12$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>

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, 1 Nov 2026 16:13:18 +0100
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <11c7kue$22j12$1@dont-email.me>
References: <11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me>
 <11c7h7s$2149h$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 01 Nov 2026 15:13:18 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2182178"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/zQwktRneFVXX3SxZVVTOyQHRHqRIoRbM="; posting-host="753ea5ac89f46b71fec6eee14f1fcae1"
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:Z6QlHs0q/Ig5ZOFzTNuhNAcarM8= sha256:z+aq2aD7p4jv9tyywcvt3UNpcvPeXql5FkZZ04mX6Tg=
	sha1:aE5nLzD+239v7Oxl+7oTRSQ/RTY= sha256:lIMjUQd5//7OOVJXoxOQK0xX+QtySaXhjcEAXp8uG7I=
In-Reply-To: <11c7h7s$2149h$1@dont-email.me>