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 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!news.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!reality.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Introductory Ada Programming Book Date: Thu, 5 Jan 2017 17:52:22 -0600 Organization: JSA Research & Innovation Message-ID: References: <87r34j39u6.fsf@nightsong.com> <7643d59e-061f-42df-adda-9322608f127b@googlegroups.com> <5b52afcc-120e-41a5-bab2-7f5c6f647cc2@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: franka.jacob-sparre.dk 1483660342 19229 24.196.82.226 (5 Jan 2017 23:52:22 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 5 Jan 2017 23:52:22 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:33074 Date: 2017-01-05T17:52:22-06:00 List-Id: "Niklas Holsti" wrote in message news:ed5bslF2432U1@mid.individual.net... > On 17-01-04 15:44 , raph.amiard@gmail.com wrote: ... >>> Oddly, variables are not initialised by default >>> (Personal opinion: default initialization is a huge mistake) >> >> Ok but, besides the "oddly" qualifier, his statement is correct, right ? > > Except for variables of an access type, or (but perhaps this is not "by > default" in his view) of a record type where the components are given > initial default values. And any type has that aspect Default_Value or Default_Component_Value specified (in Ada 2012). Effectively, you can program with all objects default initialized if you want that bad enough (although it isn't possible with some predefined types, like String). Randy.