🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1242

Re: p = {1,0,0}

#1242
From: bartc
Date: Sun, 01 Nov 2026 13:41
26 lines
1807 bytes
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};
}

Technical Details
Message-ID: <11c7fj6$20gab$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>

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: bartc <bc@freeuk.com>
Newsgroups: comp.lang.c
Subject: Re: p = {1,0,0}
Date: Sun, 1 Nov 2026 13:41:59 +0000
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <11c7fj6$20gab$1@dont-email.me>
References: <11c7f1j$20b9h$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 01 Nov 2026 13:41:59 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2113867"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18iqSddHs4OdfffO3+WQYGw"; posting-host="21107675e70675917ebe462fc92a72ff"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:g/3ERtprlfvUI4leKOk5sryMch8= sha256:zTrPQxHX8H0E/O73hUICJ3ZWCmu1k+iI44pB1qOrdv4=
	sha1:qlhux7T40q1uIsgP/7JTiM2+EaA= sha256:l92B97Bc0fIATkL3fVwFpvm1Hjt298dbps0p1DhzPD8=
Content-Language: en-GB
In-Reply-To: <11c7f1j$20b9h$1@dont-email.me>