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,5d0ce0dbca0a2038 X-Google-Attributes: gid103376,public From: mcc@tyrolia.cs.princeton.edu (Martin C. Carlisle) Subject: Re: Q: Primitive operation of a type Date: 1997/07/02 Message-ID: <5ped1q$k40$1@cnn.Princeton.EDU>#1/1 X-Deja-AN: 254142206 References: <5oq51h$t7u@netline.jpl.nasa.gov> Organization: US Air Force Academy, Dept of Computer Science Newsgroups: comp.lang.ada Date: 1997-07-02T00:00:00+00:00 List-Id: In article <5oq51h$t7u@netline.jpl.nasa.gov>, Van Snyder wrote: >I've looked at Barnes's book, and Cohen's book, and I can't >decide whether it's possible for a procedure to be a primitive >operation of more than one type. It is NOT possible for an operation to be primitive for more than one tagged type. In essence, you are attempting to do multiple inheritance, which is not supported directly in Ada 95. See section 12.4.4.3 of Cohen, and LRM 3.9.2 (12-13). For more information on how you might be able to simulate this, see section 4.6 of the rationale, or you can download a handout I wrote regarding this (published in the proceedings of this year's ASEET symposium at Monmouth Univ). See http://www.usafa.af.mil/dfcs/papers/#carlisle --Martin -- Martin C. Carlisle, Computer Science, US Air Force Academy mcc@cs.usafa.af.mil, http://www.usafa.af.mil/dfcs/bios/carlisle.html DISCLAIMER: This content in no way reflects the opinions, standard or policy of the US Air Force Academy or the United States Government.