comp.lang.ada
 help / color / mirror / Atom feed
From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: Some questions on a library design
Date: 1997/06/23
Date: 1997-06-23T00:00:00+00:00	[thread overview]
Message-ID: <EC8pHG.n0t.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: 01bc7c41$a3f397a0$LocalHost@xhv46.dial.pipex.com


Nick Roberts (Nick.Roberts@dial.pipex.com) wrote:

: Robert A Duff <bobduff@world.std.com> wrote in article
: <EBxrtu.7v6@world.std.com>...
: [...]
: > One nice thing about Ada, is that you can choose to use dispatching or
: > not, on a call-by-call basis.

: In theory, but not often in practice. 

Actually, most calls in Ada 95 end up being statically bound, whereas
in most other OOP languages, many more calls end up being dynamically
bound, even though there is no good reason for it (and oftentimes a
statically bound call would make more sense semantically as well).

: ... And in no case is the inefficiency of
: the extra tag removed, 

The extra tag imposes a small space expense, but essentially no
time overhead.  You do still have the option of creating untagged 
records in Ada 95, something not available in Java or Smalltalk.

: ... nor of the dynamic tag checking (and sometimes
: dynamic access checking).  

There are various "tag check"s in Ada, but none of them are 
performed on a statically bound call.  

An "access check" checks for null pointers, something quite
different from a "tag check."   There is also something called
an "accessibility check" which is to prevent the creation of
potentially dangling references.

You might want to check your facts a bit...

: Nick.

--
-Tucker Taft   stt@inmet.com   http://www.inmet.com/~stt/
Intermetrics, Inc.  Burlington, MA  USA




  parent reply	other threads:[~1997-06-23  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-16  0:00 Some questions on a library design Brian Rogoff
1997-06-17  0:00 ` Robert A Duff
1997-06-17  0:00   ` Brian Rogoff
1997-06-18  0:00     ` Robert A Duff
1997-06-18  0:00       ` Brian Rogoff
1997-06-20  0:00         ` Stephen Leake
1997-06-20  0:00           ` Brian Rogoff
1997-06-21  0:00   ` Nick Roberts
1997-06-22  0:00     ` Robert Dewar
1997-06-23  0:00     ` Tucker Taft [this message]
1997-06-20  0:00 ` Tucker Taft
replies disabled

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