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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,799e6e37c90ca633 X-Google-Attributes: gid103376,public From: dewarr@my-dejanews.com Subject: Re: Future Ada language revisions? Date: 1998/10/05 Message-ID: <6vbi0h$6m8$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 398049995 References: <6um7on$db5$1@nnrp1.dejanews.com> <6v9es0$bnv$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x12.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Oct 05 22:42:25 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/2.02 (OS/2; I) Date: 1998-10-05T00:00:00+00:00 List-Id: In article , Martin Dowie wrote: > my suggestion concerns subprogram specs. as defined in Ada83 (i'm still > reading up on Ada95, but i haven't seen anything to suggest this > extension has been made) the contract made between the provider and user > is clearly defined when things are going well, but when exceptions are > raised, its up to the mercy of the provider to add appropriate > documentation (be it user manual, code comment, whatever) to allow the > user to see what to expect. > > Would it be feasible to extend the specification for subprograms to > include a list of exceptions that can also be 'returned' from a > subprogram? here's an example using of what i'm driving at (hopefully > it's self explanatory) - This is of course a very old idea, one that has been introduced in some languages, and was of course discussed in detail during the Ada 83 and Ada 95 designs. Again, it is clear what the arguments are on both sides of this issue, and I don't see anything new coming up. There was some sentiment for revisiting this during the Ada 95 design, but not much. I don't know how many of the language study notes for Ada 83 still exist. Many of these issues are probably discussed there! -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own