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-Thread: 103376,70414f56d810c10c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.50.133 with SMTP id c5mr25319344pbo.2.1317077338759; Mon, 26 Sep 2011 15:48:58 -0700 (PDT) MIME-Version: 1.0 Path: lh7ni5579pbb.0!nntp.google.com!news1.google.com!news4.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!aioe.org!news.tornevall.net!news.jacob-sparre.dk!pnx.dk!jacob-sparre.dk!ada-dk.org!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: discriminant questions Date: Mon, 26 Sep 2011 17:48:56 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <9f37b726-d80b-4d24-bf3f-28a14255f7fd@s20g2000yql.googlegroups.com> <1fp2o673mu9az$.d9loz1zbcl0d.dlg@40tude.net> <14tiipigyejtc$.hyp7e82egqwq$.dlg@40tude.net> <34d856bd-19a3-4bbf-b9d8-c0f100000ef4@k7g2000vbd.googlegroups.com> <1tpl2pc36ptr4$.txv4v3wmkjlm.dlg@40tude.net> <1malv6h6q31j3.uz9ws5j0glnm.dlg@40tude.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1317077337 15871 69.95.181.76 (26 Sep 2011 22:48:57 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 26 Sep 2011 22:48:57 +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.6109 X-RFC2646: Format=Flowed; Original Xref: news1.google.com comp.lang.ada:18140 Date: 2011-09-26T17:48:56-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:muk0d5mdqzpv.tnxjyzn8jw6k$.dlg@40tude.net... > On Fri, 23 Sep 2011 17:50:57 -0500, Randy Brukardt wrote: > >> You seem to want to totally avoid the purpose of containers, which is to >> eliminate unsafe memory management and pointer usage. > > I thought that the purpose is organizing data in a structured way. >> Your interface ideas probably would make sense in a totally new language, >> but would be totally unimplementable in Ada (we'd have to get rid of at >> least discriminants, subtypes, general access types, and generics to have >> any chance to make them work). > > Reworking Ada's type system was never seriously considered since Ada 95 > design. It's insufficiently broken, as any such change is going to be incompatible. (At this point, almost every change we consider is incompatible in some way -- even trivial changes like obsolescing old pragmas like Inline turned out to be incompatible in programs that used certain restrictions.) That's what I meant about the "real world"; future Ada versions cannot be significantly incompatible with the existing ones, and even mild incompatibilities need a significant benefit. Randy.