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: fac41,2c6139ce13be9980 X-Google-Attributes: gidfac41,public X-Google-Thread: f43e6,2c6139ce13be9980 X-Google-Attributes: gidf43e6,public X-Google-Thread: 103376,3d3f20d31be1c33a X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Interface/Implementation (was Re: Design by Contract) Date: 1997/09/09 Message-ID: #1/1 X-Deja-AN: 270979087 References: <340F3801.47E5@pseserv3.fw.hac.com> <3410309E.6A32@pseserv3.fw.hac.com> Organization: New York University Newsgroups: comp.software-eng,comp.lang.ada,comp.lang.eiffel Date: 1997-09-09T00:00:00+00:00 List-Id: Wes said <> That's a bit misleading. It is in fact NOT possible in any reasonable way to create a one-pass compiler for Ada 95, and certainly no one has done so. The design goal is a rather different one, it is to enable a basically one pass scan for human comprehension purposes. If you stick to a basically linear elaboration model, you make it easier for the reader. > "Does the Ada95 standard impose dependency-related ordering?" <> To clarify, in general there is no restriction on the order in which subprograms occur. However, Ada follows the C and Pascal style of basically forbidding forward references, rather than the Algol-68 style which allows forward references. This is a very deliberate choice, and one I strongly support. Following the Algol-60/68 choice here is a serious wrong step in my view (and certainly mainstream language design agrees with this viewpoint).