Deutsch   English   Français   Italiano  
<vv66dt$hbt1$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.lang.c
Subject: Re: Regarding assignment to struct
Date: Sat, 3 May 2025 22:47:25 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <vv66dt$hbt1$1@dont-email.me>
References: <vv338b$16oam$1@dont-email.me> <vv4j9p$33vhj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 04 May 2025 00:47:25 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b8dac4bb85e923dfaf8486e3f6e91984";
	logging-data="569249"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19itOFCNq+gVjseRRw7t4xV"
User-Agent: Pan/0.162 (Pokrosvk)
Cancel-Lock: sha1:SRhx57EusUXo03xDqjFzrt3zaqE=
Bytes: 1438

On Sat, 3 May 2025 01:14:46 -0700, Andrey Tarasevich wrote:

> Virtually every C project relies on assignment of structures.
> Passing-returning structs by value might be more rare (although
> perfectly valid and often appropriate too), but assignment...
> assignment is used by everyone everywhere without even giving it a
> second thought.

There is a caveat, to do with alignment padding: will this always have a 
defined value?