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,e6acc909c7f4dc05 X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: Type conversions forced by derived type: alternative? Date: 1996/09/05 Message-ID: #1/1 X-Deja-AN: 178571507 references: organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-09-05T00:00:00+00:00 List-Id: In article , John Woodruff wrote: > type Object is new Implementation.Tree; -- subtype doesn't fit here Object inherits the primitive ops of Tree, so... > if Item_Of(Implementation.Tree (O)).Label = "Hello" then the type conversion should not be necessary. Unless I'm missing something. I assume Item_Of is a primitive op of type Tree, and should therefore be inherited by type Object? - Bob