From: gvcormack@watdaisy.UUCP (Gordon V. Cormack)
Subject: Re: Ada expression resolvers
Date: Fri, 24-May-85 10:28:15 EDT [thread overview]
Date: Fri May 24 10:28:15 1985
Message-ID: <7276@watdaisy.UUCP> (raw)
> Does anyone have any information on strategies that might be used to
> resolve an assignment statement in Ada?
>
> I'm not sure if the term "resolve" is universally used, so let me explain
> procedure P is
> x : int;
> y : int;
> x : float;
> begin
> x := y;
> end P;
This requires a reasonably straightforward extension to any Ada
overloading algorithm to allow variables as well as functions etc.
to be overloaded. One has to treat := as an overloaded operator
that is applicable to all non-limited types.
An good entry into the literature on overload resolution is the introduction to
T.P. Baker, "A one-pass algorithm for overload resolution in Ada",
ACM TOPLAS 4:4 , 601-614.
I should note that the above program is not legal in Ada; variables
may not be overloaded.
--
Gordon V. Cormack CS Department, University of Waterloo
gvcormack@watdaisy.uucp gvcormack%watdaisy@waterloo.csnet
next reply other threads:[~1985-05-24 14:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1985-05-24 14:28 Gordon V. Cormack [this message]
-- strict thread matches above, loose matches on Subject: below --
1985-05-23 16:15 Ada expression resolvers L. Armstrong
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox