Article View: comp.lang.c
Article #1243Re: p = {1,0,0}
From: fir
Date: Sun, 01 Nov 2026 14:10
Date: Sun, 01 Nov 2026 14:10
31 lines
2076 bytes
2076 bytes
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;
Technical Details
Message-ID:
<11c7h7s$2149h$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-mailReferences:
<11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$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 15:10:04 +0100
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <11c7h7s$2149h$1@dont-email.me>
References: <11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$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 14:10:04 +0000 (UTC)
Injection-Info: dont-email.me;
logging-data="2134321"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+iFoKHVXu2l+QyccnsnEQgYiAQQtb3db4="; 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:dBkvdH3MfFfRA63T47pxH9PH4s8= sha256:fN3Q7YvXtp7XVC9Nu4UJHLZJmDl7pAGmvkZ3BgyCDj4=
sha1:Jm/SixPyhrpYRS6ZgjffCBRMQ60= sha256:GOiJF+xgD9cs4xfL5RVZCdwicPqo4pL0Lx5buQePxxA=
In-Reply-To: <11c7fj6$20gab$1@dont-email.me>