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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f8ab3336640d0856 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-03-17 01:49:41 PST Path: bga.com!news.sprintlink.net!cs.utexas.edu!math.ohio-state.edu!jussieu.fr!pasteur.fr!news2.EUnet.fr!enst!usenet From: tardieu@valjean.enst.fr (Samuel Tardieu) Newsgroups: comp.lang.ada Subject: Re: How to dynamically dispatch? Date: 17 Mar 1995 11:37:56 +0100 Organization: TELECOM Paris Message-ID: References: <3k8m9f$eci@goanna.cs.rmit.edu.au> Reply-To: sam@inf.enst.fr NNTP-Posting-Host: valjean.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit To: Dale Stanbrough In-reply-to: Dale Stanbrough's message of 16 Mar 1995 06:36:31 GMT X-Newsreader: (ding) Gnus v0.35 Date: 1995-03-17T11:37:56+01:00 List-Id: GNAT has no way to know that there is an 'eval' function defined for any object of type Expression'Class, it only knows that there is one for 'literal' and 'binary_operation' types. You may want to add an abstract function to type Expression to force developpers to add this function to any new type they create from Expression and let GNAT know that such a fonction exists: function Eval (Item : Expression) return Integer is abstract; Hope this helps. Sam -- "La cervelle des petits enfants, ca doit avoir comme un petit gout de noisette" Charles Baudelaire