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!mx02.eternal-september.org!feeder.eternal-september.org!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!reality.xs3.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Uninitialized out parameters. Date: Thu, 7 Apr 2016 18:02:47 -0500 Organization: JSA Research & Innovation Message-ID: References: <3be79ab3-ebc7-4169-9713-d50349662403@googlegroups.com> <51041ba8-3243-46bc-b97d-b106d4b357e2@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1460070168 29384 24.196.82.226 (7 Apr 2016 23:02:48 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 7 Apr 2016 23:02:48 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original Xref: news.eternal-september.org comp.lang.ada:30046 Date: 2016-04-07T18:02:47-05:00 List-Id: "AdaMagica" wrote in message news:51041ba8-3243-46bc-b97d-b106d4b357e2@googlegroups.com... > Am Donnerstag, 7. April 2016 11:57:02 UTC+2 schrieb > Stefan...@uni-weimar.de: > >> > (2) The latter can be written in current Ada 2012: (that is, with TC1 >> > implemented) >> > function Y return T is (raise Program_Error); >> >> Great! I wasn't aware of that. I always thought, the expression in >> brackets had to be of type T. >> >> Stefan > > A raise_expression matches any type. See RM. Right. One can think of it sort of like "bottom" in a functional language - it represents the "not a value" of any type. (And touch it and you die.) OTOH, like me, you may not want to think of functional languages much. ;-) Randy.