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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7a3b1c6915ea1273 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.75.170 with SMTP id d10mr643206pbw.6.1326454804156; Fri, 13 Jan 2012 03:40:04 -0800 (PST) Path: lh20ni177240pbb.0!nntp.google.com!news2.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: How many Ada compiler bugs are here? Date: Fri, 13 Jan 2012 12:39:43 +0100 Organization: cbb software GmbH Message-ID: References: <6d352870-d204-4137-a562-5a0b67db1f80@h13g2000vbn.googlegroups.com> <15d37z3l8zllg$.3z2pj9cy5kvq.dlg@40tude.net> <12560181348142702.911808rmhost.bauhaus-maps.arcor.de@news.arcor.de> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-01-13T12:39:43+01:00 List-Id: On 13 Jan 2012 10:38:04 GMT, georg bauhaus wrote: > "Dmitry A. Kazakov" wrote: > >> >> package P is >> type T (<>) is private; >> private >> type T is new Integer; >> end P; >> > > package P.Dummies is > Meaningless_Dummy : constant T; > Raising_Dummy : constant T; > private > ... > End P.Dummies; Which of course defies the very idea of requiring T initialized. If there exist some Meaningless_Dummy constant, then that could serve as an initial value for T. The whole point why Foo returning T raises an exception is that there NO value to return! -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de