comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not>
Subject: Re: Aggregate with derived types.
Date: Thu, 14 Sep 2023 23:37:47 +0200	[thread overview]
Message-ID: <udvufb$2opvr$1@dont-email.me> (raw)
In-Reply-To: <udvooj$2oveh$1@dont-email.me>

On 2023-09-14 22:00, Blady wrote:
> 
> I wonder why the float list aggregate isn't inferred by the compiler and need 
> some help with a qualification.

I'm not sure. But can't you simply write

ML2 : My_Float_List2 := [-3.1, -6.7, 3.3, -3.14, 0.0];

? I presume that My_Float_List2 inherits its aggregate definition from 
My_Float_List1.

-- 
Jeff Carter
"[M]any were collected near them, ... to
enjoy the sight of a dead young lady, nay,
two dead young ladies, for it proved twice
as fine as the first report."
Persuasion
155

  reply	other threads:[~2023-09-14 21:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-14 14:02 Aggregate with derived types Blady
2023-09-14 15:31 ` Jeffrey R.Carter
2023-09-14 20:00   ` Blady
2023-09-14 21:37     ` Jeffrey R.Carter [this message]
2023-09-15  7:27       ` Blady
2023-09-16  6:39     ` Randy Brukardt
replies disabled

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