comp.lang.ada
 help / color / mirror / Atom feed
From: John Perry <john.perry@usm.edu>
Subject: Re: Advent of Code Day 7
Date: Mon, 7 Dec 2020 15:49:12 -0800 (PST)	[thread overview]
Message-ID: <b045c7fd-84d5-4051-8f8c-2912cbaa58c3n@googlegroups.com> (raw)
In-Reply-To: <rqmepd$1q2$1@franka.jacob-sparre.dk>

On Monday, December 7, 2020 at 5:44:48 PM UTC-6, Randy Brukardt wrote:
> Entry: Bag_Entry := (Quantity => 10, Description => <>); 
> 
> In an aggregate, <> means a default initialized component. Following the Ada 
> Way TM ;-), one has to explicitly ask for a default initialized component -- 
> just leaving it out might have been a mistake or intended -- neither the 
> compiler nor a reader can tell. The above is clearly intended. 

That makes sense and works! Thank you!

john perry

  reply	other threads:[~2020-12-07 23:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-07 23:03 Advent of Code Day 7 John Perry
2020-12-07 23:44 ` Randy Brukardt
2020-12-07 23:49   ` John Perry [this message]
2020-12-08 11:25 ` Jeffrey R. Carter
2020-12-08 16:55   ` John Perry
2020-12-08 23:25     ` Jeffrey R. Carter
replies disabled

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