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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!news.mixmin.net!news2.arglkargh.de!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Constant as anonymous functions : the outer space beast is back Date: Mon, 8 Feb 2010 18:22:28 -0600 Organization: Jacob Sparre Andersen Message-ID: References: <3c43bf9d-75f1-4d09-9388-65b83cafb1d9@j14g2000yqm.googlegroups.com> <454c900f-85ed-4a40-ad13-a5b432261b99@c29g2000yqd.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1265674949 22160 69.95.181.76 (9 Feb 2010 00:22:29 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 9 Feb 2010 00:22:29 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5843 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Xref: g2news1.google.com comp.lang.ada:9006 Date: 2010-02-08T18:22:28-06:00 List-Id: "Robert A Duff" wrote in message news:wccvde9audf.fsf@shell01.TheWorld.com... > "Hibou57 (Yannick Duch�ne)" writes: > >> If it's not good for constants, so why should it be good for >> functions ? > > You're right -- it would make sense to allow overloading for constants. > In fact, it would make sense to allow overloading for everything. > But you'd want to make the resolution rules weak, so that anything > that is likely to be confusing to programmers would be ambiguous and > therefore illegal. > > Ada's resolution rules are too strong as it is. For example: > > F(...).all := X; > > I find it odd that the type of X is used to resolve which > F you're calling. > > Another point: implicit hiding is evil. It causes Beaujolais-like > effects. Ada 95 makes it worse, because of child packages -- the > hiding can cross library unit boundaries. Subunits already had > similar problems in Ada 83, but subunits are less useful, and > therefore rarer, than child packages. I agree with Bob here. Hibou57 (Yannick Duch�ne) writes: > I not aware enough of some rationale, but I feel the Constant keyword > should be part of Constant renaming. And I agree with you here. In both cases if we were starting from scratch. But we're not starting from scratch. There are millions on lines of existing Ada code. Fixing these things would be very incompatible. We've been trying to find ways to compatibly fix issues with subprogram renames for years, but it isn't easy and is dubious if it really is helpful. The net effect is that most likely, there will be little or no change in these areas. Randy.