From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50 autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:ac8:4801:: with SMTP id g1mr25437559qtq.44.1607382210059; Mon, 07 Dec 2020 15:03:30 -0800 (PST) X-Received: by 2002:ad4:524d:: with SMTP id s13mr23867915qvq.19.1607382209888; Mon, 07 Dec 2020 15:03:29 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.uzoreto.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 7 Dec 2020 15:03:29 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2601:3c3:401:f550:14c4:dd53:a4f3:cc6; posting-account=JSxOkAoAAADa00TJoz2WZ_46XrZCdXeS NNTP-Posting-Host: 2601:3c3:401:f550:14c4:dd53:a4f3:cc6 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Advent of Code Day 7 From: John Perry Injection-Date: Mon, 07 Dec 2020 23:03:30 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:60757 List-Id: When doing today's exercise, I encountered an issue where I wanted to initialize only some fields of a record, with the other fields having a default initialization. In particular: type Bag_Entry is record Description: Bag_Description := " "; Quantity: Positive; end record; Entry: Bag_Entry := ( Quantity => 10 ); However, GNAT says this is invalid because I didn't specify Bag_Description. I looked in the ARM but didn't see anyplace that implies that; did I miss it? Is there a reason that Description can't be initialized automatically according to the rules above? john perry