comp.lang.ada
 help / color / mirror / Atom feed
From: Dale Stanbrough <dale@goanna.cs.rmit.EDU.AU>
Subject: Re: Type conversion between access types (was: Free'ing extended types)
Date: 1996/05/21
Date: 1996-05-21T00:00:00+00:00	[thread overview]
Message-ID: <4nr20u$mv9@goanna.cs.rmit.EDU.AU> (raw)
In-Reply-To: leschkes.832628057@ferret


Scott Leschke writes:

"First I was
 slightly surprised that the type conversions in the example code Bob Duff
 posted were allowed since I know that independent access types (even those
 specifying the same type) are viewed as denoting separate pools and as such
 type conversions between them is not allowed."


I presume that this also means that access types declared inside a generic
package are not compatable with other access types? 


e.g. 

generic
	type element is private;
package x is

	type ptr is access element;
end;


package y is

	type a is private;

	type ptr is access a;
	
	package new_ptr_package is new x(a);
	
	
end;

Is new_ptr_package.ptr not type convertible with y.ptr?
Is it likely that compilers would use different storage pools for
these two types?

Dale




  parent reply	other threads:[~1996-05-21  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   ` Laurent Guerby
1996-04-29  0:00     ` Robert A Duff
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         ` 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
1996-05-24  0:00                 ` Robert A Duff
1996-05-21  0:00         ` Dale Stanbrough [this message]
1996-05-21  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       ` 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