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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1116ece181be1aea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-16 00:26:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: Is the Writing on the Wall for Ada? Date: Thu, 16 Oct 2003 09:27:16 +0200 Message-ID: <5ohsovkq9ppv7anb5c25i875t8ga89fhe4@4ax.com> References: <3F797748.3000203@noplace.com> <834clb.uan1.ln@skymaster> <3F79EF18.7060600@comcast.net> <3F7B1076.8060106@comcast.net> <5mknnv4u96qqudrt4bd8n4t1cljp2fjlp8@4ax.com> <3F7C810E.7070100@comcast.net> <3G2dnS15r8mycOCiXTWJkA@gbronline.com> NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 1066289200 24774540 212.79.194.111 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:948 Date: 2003-10-16T09:27:16+02:00 List-Id: On Wed, 15 Oct 2003 19:59:34 -0500, "Randy Brukardt" wrote: >"Dmitry A. Kazakov" wrote in message >news:blm0au$dkoad$2@ID-77047.news.uni-berlin.de... >> So you have to go further: >> >> type String_In_Record (Length : Positive := 80) is >> The_Body : String (1..Length); >> end record; >> >> This would result in Storage_Error. Defaulted discriminants are not what >> people usualy think about them! > >No, this *can* result in Storage_Error. It certainly will not in Janus/Ada >(which allocates unconstrained records to size). I personally think it is a >mistake to implement unconstrained records so that the above reasonable >construct doesn't work -- but that is a position that is not widely held. > >... >> Presently this is unsolvable without generics. > >No, just get a better compiler. :-) Point taken! (:-)) --- Regards, Dmitry Kazakov www.dmitry-kazakov.de