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!newsfeed.xs3.de!reality.xs3.de!io.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: I am not understanding user defined exceptions Date: Fri, 10 Feb 2017 14:56:18 -0600 Organization: JSA Research & Innovation Message-ID: References: <6cb6e781-c6df-4962-99e3-760e7c7fab88@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: franka.jacob-sparre.dk 1486760179 425 24.196.82.226 (10 Feb 2017 20:56:19 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 10 Feb 2017 20:56:19 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:33315 Date: 2017-02-10T14:56:18-06:00 List-Id: "Robert A Duff" wrote in message news:wccfujnf042.fsf@TheWorld.com... > "Randy Brukardt" writes: > >> Most likely: >> >> X : Integer := ...; -- Static constant >> X : constant Integer := ...; -- Non-static constant >> X : variable Integer := ...; -- Variable. >> >> Since the default should be the safest thing. > > Well, at least we agree on one thing. It's odd that Ada got it right > for parameters ('in' is the default), but got it wrong for object > declarations (variable is the default). > > I'd be happy with: > > X : Integer := ...; -- constant > X : var Integer := ...; -- variable > > - Bob