From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: procedural vs object oriented
Date: Thu, 27 Apr 2006 17:51:19 +0200
Date: 2006-04-27T19:50:51+02:00 [thread overview]
Message-ID: <4451047b$0$4493$9b4e6d93@newsread2.arcor-online.net> (raw)
In-Reply-To: <4450FD24.2020205@obry.net>
Pascal Obry wrote:
> Maciej Sobczak a �crit :
>
>> In what way is this better or more certain than a dispatching call based
>> on the tag?
>
> Static analysis is possible in this case.
But static analysis should be possible for the following
program, too, as long as for example `cons` returns references
to object of a known finite set of types derived from T...
At least possible in some defined set of cases, if slightly
more difficult.
procedure dis is
package p is
type T is tagged null record;
type REF is access T'class;
procedure op(x: T);
type D1 is new T with null record;
procedure op(x: D1);
type D2 is new T with null record;
procedure op(x: D2);
end P;
use P;
function cons return REF;
y: REF := cons;
begin
op(y.all);
end;
next prev parent reply other threads:[~2006-04-27 15:51 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-26 8:16 procedural vs object oriented Ananth the Boss
2006-04-26 9:17 ` Jean-Pierre Rosen
2006-04-26 17:44 ` Jeffrey R. Carter
2006-04-26 12:52 ` Dmitry A. Kazakov
2006-04-27 1:33 ` bh
2006-04-27 5:22 ` Ludovic Brenta
2006-04-27 7:36 ` Dmitry A. Kazakov
2006-04-27 10:42 ` Ludovic Brenta
2006-04-27 11:07 ` Maciej Sobczak
2006-04-27 12:03 ` Ludovic Brenta
2006-04-27 17:19 ` Pascal Obry
2006-04-27 15:51 ` Georg Bauhaus [this message]
2006-04-27 12:45 ` Dmitry A. Kazakov
2006-04-27 13:20 ` Ludovic Brenta
2006-04-27 14:24 ` Alex R. Mosteo
2006-04-27 15:17 ` Ludovic Brenta
2006-04-27 16:11 ` Alex R. Mosteo
2006-04-27 20:19 ` Ludovic Brenta
2006-04-27 14:01 ` Jean-Pierre Rosen
2006-04-28 7:46 ` Dmitry A. Kazakov
2006-04-27 15:38 ` Peter Amey
2006-04-27 20:20 ` Ludovic Brenta
2006-04-27 6:55 ` Ananth the Boss
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox