From: emery@dr-no.MITRE.ORG (David Emery)
Subject: Re: Programs wanted
Date: 26 Jan 93 01:57:37 GMT [thread overview]
Message-ID: <EMERY.93Jan25205737@dr_no.mitre.org> (raw)
Consider
package P is
type I1 is new integer;
-- "+" now redefined for objects of type I1
function "+" (l :I1; r : integer) return I1;
function "+" (l: integer; r : I1) return I1;
end P;
with P; use P;
procedure Q is
X, Y : I1 := 1;
I, J : Integer := 2;
MAGIC_NUMBER : constant := 42;
begin
X := X + I;
X := X + 1;
X := MAGIC_NUMBER + Y;
Y := X + J;
I := integer(X) + integer(Y);
end Q;
How many unique operators are there in this code??? Almost any answer
to this question involves enough semantic analysis to resolve Ada
overloading. That's a good-sized chunk of an Ada compiler.
dave
next reply other threads:[~1993-01-26 1:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-01-26 1:57 David Emery [this message]
-- strict thread matches above, loose matches on Subject: below --
1993-01-26 23:35 Programs wanted Rob Spray
1993-01-26 13:35 David B Rodman
1993-01-25 23:03 pk115050
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox