comp.lang.ada
 help / color / mirror / Atom feed
From: "Frédéric Praca" <frederic.praca@free.fr>
Subject: Re: Representation clauses and side-efects on STM32F411 ravenscar runtime
Date: 02 Aug 2015 14:53:13 GMT
Date: 2015-08-02T16:53:13+02:00	[thread overview]
Message-ID: <55be2ed9$0$3318$426a74cc@news.free.fr> (raw)
In-Reply-To: ly614youpu.fsf@pushface.org

Le Sun, 02 Aug 2015 11:22:53 +0100, Simon Wright a écrit :

> Simon Wright <simon@pushface.org> 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 :)

  reply	other threads:[~2015-08-02 14:53 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-02  8:59 Representation clauses and side-efects on STM32F411 ravenscar runtime Frédéric Praca
2015-08-02  9:40 ` Simon Wright
2015-08-02 10:22   ` Simon Wright
2015-08-02 14:53     ` Frédéric Praca [this message]
2015-08-02 14:52   ` Frédéric Praca
2015-08-02 15:19     ` Simon Wright
2015-08-02 19:23 ` Jeffrey R. Carter
2015-08-02 19:54   ` Bob Duff
2015-08-02 20:01     ` Frédéric Praca
2015-08-02 20:13       ` Bob Duff
2015-08-02 20:27         ` Frédéric Praca
2015-08-02 20:31     ` Jeffrey R. Carter
2015-08-03 11:08 ` Simon Clubley
2015-08-15 14:22   ` Frédéric Praca
2015-08-15 15:33     ` Simon Clubley
2015-08-15 17:17       ` Frédéric Praca
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox