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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d0452dbe16ac0df4 X-Google-Attributes: gid103376,public From: Tom Moran Subject: Re: ObjectAda vs Gnat -- bugs Date: 1997/05/25 Message-ID: <33888327.2B46@bix.com>#1/1 X-Deja-AN: 243888397 References: <5loibn$qek@lotho.delphi.com> <01bc656a$a0307400$LocalHost@xhv46.dial.pipex.com> Organization: InterNex Information Services 1-800-595-3333 Reply-To: tmoran@bix.com Newsgroups: comp.lang.ada Date: 1997-05-25T00:00:00+00:00 List-Id: > X : T renames Create(...); vs. > X: T; -- X initialised to an unusable status > begin > Init(X,...); -- X now set up as required > ... If X needs to be constant > once set up, any attempt to call Init again on X could also be detected and > raise and exception. The "renames" has the advantage that any attempt to modify or re-create X would show us as a compile time, rather than a (possibly path-dependent) run time, error. OTOH, the "renames" might get some later maintenance programmer into a tizzy. ;)