From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!cleanfeed1-b.proxad.net!nnrp4-1.free.fr!not-for-mail From: =?iso-8859-1?b?RnLpZOlyaWM=?= Praca Subject: Re: Representation clauses and side-efects on STM32F411 ravenscar runtime Newsgroups: comp.lang.ada References: <55bddbe2$0$3384$426a74cc@news.free.fr> User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 02 Aug 2015 14:53:13 GMT Message-ID: <55be2ed9$0$3318$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 02 Aug 2015 16:53:13 CEST NNTP-Posting-Host: 94.71.68.35 X-Trace: 1438527193 news-3.free.fr 3318 94.71.68.35:56291 X-Complaints-To: abuse@proxad.net Xref: news.eternal-september.org comp.lang.ada:27327 Date: 2015-08-02T16:53:13+02:00 List-Id: Le Sun, 02 Aug 2015 11:22:53 +0100, Simon Wright a écrit : > Simon Wright writes: > >> In any case, a whole record assignment is better practice, because it >> means the compiler won't let you forget to assign a component. > > is better practice than assigning each component separately if your > intention is to assign all of them. Well, I totally agree with you and I prefer using aggregate assignment when initializing the whole record. But I gave this example because it was the simplest I had, the other ones are much more complicated :)