comp.lang.ada
 help / color / mirror / Atom feed
From: leschkes@ferret.cig.mot.com (Scott Leschke)
Subject: Re: Type conversion between access types (was: Free'ing extended types)
Date: 1996/05/24
Date: 1996-05-24T00:00:00+00:00	[thread overview]
Message-ID: <leschkes.832959439@ferret> (raw)
In-Reply-To: Drv666.92J@world.std.com


bobduff@world.std.com (Robert A Duff) writes:

[...] Some good stuff

>The intention of having the "all" in the language was to allow
>implementations to use clever representations for pool-specific access
>types.  For example, if you know that the storage pool is only 64 K
>bytes, then you can use a 16-bit offset for a pool-specific access type,
>because you know it always points into that pool.  For a general access
>type, however, you need a full pointer (say, 32 bits), because it can
>point into any pool, and can point into the stack.

Yeah, I saw this point made in the Rationale.

>Another advantage of pool-specific access types is that you know you
>can't erroneously deallocate from the wrong storage pool.

>But in my programs, I almost always end up writing "all".  I suggest
>that you always use "all" for access-to-class-wide types, since you will
>often need to do the conversions allowed by 4.6(13).

I have noticed that in most of the code I've seen, all is used pretty
liberally would makes me wonder about the benefit of making the distinction
between pool and general accesss types myself.  I have wondered if it may
have been better to have the distinction go the other way if indeed a
distinction was warranted (ie. general and non-pool based).

-- 
Scott Leschke.........................email: leschkes@cig.mot.com
Motorola, Inc............................ph: 847-632-2786
1501 W Shure Drive......................fax: 847-632-3145
Arlington Heights, IL   60004......mailstop: 1301




  parent reply	other threads:[~1996-05-24  0:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-28  0:00 Free'ing extended types Jonas Nygren
1996-04-28  0:00 ` Robert Dewar
1996-04-29  0:00   ` Jonas Nygren
1996-04-29  0:00     ` Robert A Duff
1996-04-29  0:00       ` Jonas Nygren
1996-04-29  0:00       ` Robert Dewar
1996-04-29  0:00         ` Robert A Duff
1996-05-20  0:00       ` Type conversion between access types (was: Free'ing extended types) Scott Leschke
1996-05-21  0:00         ` Dale Stanbrough
1996-05-21  0:00           ` Robert A Duff
1996-05-21  0:00         ` Robert A Duff
1996-05-22  0:00           ` Scott Leschke
1996-05-23  0:00             ` Robert A Duff
1996-05-23  0:00               ` progers
1996-05-24  0:00               ` Scott Leschke [this message]
1996-05-24  0:00                 ` Robert A Duff
1996-04-29  0:00   ` Free'ing extended types Laurent Guerby
1996-04-29  0:00     ` Robert A Duff
1996-04-29  0:00   ` Laurent Guerby
1996-04-29  0:00     ` Robert A Duff
1996-04-29  0:00       ` Robert Dewar
replies disabled

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