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.6 required=5.0 tests=BAYES_05,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,899484222880ae7c,start X-Google-Attributes: gid103376,public From: Tom Moran Subject: preventing inheritance Date: 1996/12/13 Message-ID: <32B22CDC.3FE4@bix.com>#1/1 X-Deja-AN: 204041558 content-type: text/plain; charset=us-ascii organization: InterNex Information Services 1-800-595-3333 mime-version: 1.0 reply-to: tmoran@bix.com newsgroups: comp.lang.ada x-mailer: Mozilla 3.0Gold (Win95; I) Date: 1996-12-13T00:00:00+00:00 List-Id: Given type T is tagged ... procedure A(X:T) function B(X:T) return ... procedure C(X:T) and Type U is new T with ... procedure D(X:T) procedure E(X:T) function F(X:T) return ... BUT B(X:U) is, for reasons beyond my control, illegal. What is the best way to prevent/catch B(X:U)? Currently I replace the inherited B(X:U) with function B(X:U) return ... is begin raise this_is_a_no_no; return 0; -- all functions need at least one return end B;