From: "James S. Rogers" <JimMaureenRogers@worldnet.att.net>
Subject: Re: Tools
Date: 1996/12/18
Date: 1996-12-18T00:00:00+00:00 [thread overview]
Message-ID: <32B8BE29.2577@worldnet.att.net> (raw)
In-Reply-To: dewar.850943274@merv
Robert Dewar wrote:
> I don't think this can possibly be true. Dynamic dispatching is semantically
> equiavlent to a series of calls protected by conditoinals, and it would seem
> that any methodology which could not handle:
>
> if a then call-b
> elsif b then call-c
> ...
>
> is too limited to be useful.
Yes, dynamic dispatching is sematically equivalent to a series of calls protected
by conditionals, or even a case statement. A set of conditionals or a case
statement is easily evaluated on the fly. The required information is directly
available for static analysis.
Tagged types differ. They require a static analysis tool to build and maintain
a dispatch table for all types, keeping in mind scope and visibility rules for
each calling point. Given that the current package may be influenced by a
child package which is unreferenced in the current package, this appears to be a
task which would not be reliably executed by a tool which was less than a full
Ada compiler front end.
Jim Rogers
--------------------------------------------
Team Ada
next prev parent reply other threads:[~1996-12-18 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-12-16 0:00 Tools Art Schwarz
1996-12-17 0:00 ` Tools James Rogers
1996-12-18 0:00 ` Tools Robert Dewar
1996-12-18 0:00 ` James S. Rogers [this message]
1996-12-19 0:00 ` Tools Robert A Duff
1996-12-19 0:00 ` Tools Art Schwarz
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox