comp.lang.ada
 help / color / mirror / Atom feed
From: "chris.danx" <spamoff.danx@ntlworld.com>
Subject: Re: What's it's name again?
Date: Tue, 30 Jul 2002 01:50:42 +0100
Date: 2002-07-30T01:50:42+01:00	[thread overview]
Message-ID: <cql19.1922$Qi2.19953@newsfep3-gui.server.ntli.net> (raw)
In-Reply-To: wcclm7ugkpx.fsf@shell01.TheWorld.com

Robert A Duff wrote:
> "chris.danx" <spamoff.danx@ntlworld.com> writes:
> 
> That's not quite legal.  I think you mean a private type completed by an
> access type, where the access type points to an incomplete type
> completed in the body.  

[snip]

I must have misunderstood the code in the course.

> I call R an "stt incomplete type", and I call T an "stt access type",
> named after Tucker Taft (initials "stt"), who invented them around 1982
> or so, just before Ada 83 was standardized.  Jean Ichbiah called them
> "Taft Amendment Types".

:)

[snip loads of useful info]

> The whole model here depends on the idea that the compiler can look at
> the specs of all with'ed packages (including private parts), but not
> their bodies.  Pragma Inline breaks that model, which IMHO makes the
> whole model suspect.

Thanks for that Bob, I understand the issues a bit better now!

The interest in this came from a discussion about coupling & 
encapsulation - it got me thinking about how much information given away 
to developers in the package spec.  If incomplete types are used, 
virtually no information is given to the client developer, but for 
"normal" types the representation of the type is there for the any 
developer to see.  Maybe giving such information leads *some* developers 
to make assumptions about the representation, which may not hold 
throughout the packages lifetime.  Since the types are private, it's not 
a big deal - what information could the developer rely on?  they're 
private after all!

Sometimes I'd just like to be able to say "don't worry about how it 
works, just know that it does and satisfies these requirments, and don't 
peek!". :)


> - Bob

Chris

p.s. I'm not critising Ada :)

-- 
to reply by personal email change 'spamoff' to 'chris'




  reply	other threads:[~2002-07-30  0:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-29 23:13 What's it's name again? chris.danx
2002-07-29 23:32 ` Larry Elmore
2002-07-30  0:08   ` chris.danx
2002-07-29 23:47 ` Robert A Duff
2002-07-30  0:50   ` chris.danx [this message]
2002-07-30  8:21   ` Dmitry A. Kazakov
2002-07-30 18:53     ` Robert A Duff
2002-08-01  0:11       ` Dmitry A.Kazakov
2002-07-31 20:38         ` Robert A Duff
2002-08-02  2:21           ` Dmitry A.Kazakov
2002-07-30 18:55   ` Richard Riehle
replies disabled

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