🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1293

Re: p = {1,0,0}

#1293
From: fir
Date: Tue, 03 Nov 2026 13:29
36 lines
2210 bytes
bartc pisze:
> (It seems to work in my language, provided the expression isn't 'open'. 
> So 'a := (x, y)' will work, as the LHS helps refine the type, but not 
> 'print (x, y)' because the types have not been pinned down.)

i facy the usage in functions is probably the main (or main aside other 
mains) usage of it

like

foo({x,y,z}) //for foo(float3 x)

instead of
float3 x = {23,4,4};
foo(x);

very handy  same for

foo(&{3,4,d}) //for foo(float3* x)

maybe even handier

probabbly also to allow skipping return values in expressions


zoo({x,y,} foo({2,3,4}))

foo terurns int-int-int but zoo takes only 2 ints

also incidentally seems it allows to return values rightside


zoo( foo({2,3,4}) {x,y,} )

which is very worth rethinking
Technical Details
Message-ID: <11ccnkq$3pjhd$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>

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: Tue, 3 Nov 2026 14:29:59 +0100
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <11ccnkq$3pjhd$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 03 Nov 2026 13:30:02 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3984941"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX187YAeCfVPLYAFQov9fgDccr0UHvtMxwKk="; posting-host="74e0b903fc41719bd550775fdb1cba7e"
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:t4oS0T5aCwRC+qIhHNp95Z2hbyM= sha256:Xjgt4XmAMpaxQKdMC1Yc9rCkSpiMXGxX02fQRsQpbYY=
	sha1:Pmtr4qadwguk/0W8mdYaZqJ6XPY= sha256:RLS3VPws3p1jkuwbcTS6TiKtImJifiY6DtvtgTyy1dE=
In-Reply-To: <11cb4hs$3a13l$1@dont-email.me>