comp.lang.ada
 help / color / mirror / Atom feed
From: tardieu@valjean.enst.fr (Samuel Tardieu)
To: Dale Stanbrough <dale@rmit.edu.au>
Subject: Re: How to dynamically dispatch?
Date: 17 Mar 1995 11:37:56 +0100
Date: 1995-03-17T11:37:56+01:00	[thread overview]
Message-ID: <tardieuzngjzcilnqam@valjean.enst.fr> (raw)
In-Reply-To: Dale Stanbrough's message of 16 Mar 1995 06:36:31 GMT

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



      reply	other threads:[~1995-03-17 10:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-16  6:36 How to dynamically dispatch? Dale Stanbrough
1995-03-17 10:37 ` Samuel Tardieu [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox