comp.lang.ada
 help / color / mirror / Atom feed
From: warwicks@telusplanet.net (Chris Warwick)
Subject: Re: How do I get this to work??
Date: 1999/01/09
Date: 1999-01-09T00:00:00+00:00	[thread overview]
Message-ID: <BrBl2.6251$Kg6.44094@news2.telusplanet.net> (raw)
In-Reply-To: 771bl9$sla$1@nnrp1.dejanews.com

In article <771bl9$sla$1@nnrp1.dejanews.com>, robert_dewar@my-dejanews.com wrote:

>You can't have it both ways, If you insist on structuring
>your program in a manner that leaves it open to the
>possibilities of dangling pointers, then you have to use
>Unchecked_Access. 

I guess this where I get confused. If I want to pass a pointer amoungst these 
functions/procedures I have to define the type at the package level. As a 
result there is no way for someone to define an instance of the pointer at a 
lower level, i.e., as a local variable within a procedure. Another way to get 
this to function would be to define as instance of the pointer as a global 
variable for the package, but then I have to mutex it to prevent different 
tasks from getting messed up (which seems unnecessarily awkward).

I think I understand the rules, but I am confused as to how this "should" 
work.

>Proper restructuring can often, but not
>always, remove the need for this. Note that
>Unchecked_Access is of course no more dangerous from the
>point of view of accessibility violations than 'Address.
>Does 'Address make you equally uneasy? If not you are being
>over concerned at names, when functionality is more
>significant!

I've got it working... My uneasyness stems from the fact that when I ran into 
unchecked_conversion I was able to get someone to explain to me how it really 
was "supposed" to work, and once I understood, I agreed. Thus far I still do 
not understand how a package can export a "useful" pointer definition...




  reply	other threads:[~1999-01-09  0:00 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-04  0:00 How do I get this to work?? Chris Warwick
1999-01-05  0:00 ` Chris Warwick
1999-01-05  0:00   ` Stephen Leake
1999-01-05  0:00     ` Tom Moran
1999-01-06  0:00       ` robert_dewar
1999-01-06  0:00         ` Tom Moran
1999-01-07  0:00           ` robert_dewar
1999-01-07  0:00             ` Tom Moran
1999-01-10  0:00               ` robert_dewar
1999-01-06  0:00         ` Tom Moran
1999-01-07  0:00           ` robert_dewar
1999-01-07  0:00             ` Tom Moran
1999-01-10  0:00               ` robert_dewar
1999-01-10  0:00                 ` Tom Moran
1999-01-10  0:00                   ` robert_dewar
1999-01-10  0:00                     ` Pat Rogers
1999-01-10  0:00                     ` Tom Moran
1999-01-10  0:00                   ` robert_dewar
1999-01-06  0:00         ` Larry Kilgallen
1999-01-06  0:00           ` Tom Moran
1999-01-06  0:00     ` robert_dewar
1999-01-06  0:00     ` Chris Warwick
1999-01-06  0:00       ` Tom Moran
1999-01-07  0:00       ` Stephen Leake
1999-01-08  0:00         ` Simon Wright
1999-01-07  0:00       ` robert_dewar
1999-01-09  0:00         ` Chris Warwick [this message]
1999-01-09  0:00           ` Brian Rogoff
1999-01-10  0:00             ` Matthew Heaney
1999-01-09  0:00           ` Simon Wright
1999-01-10  0:00             ` robert_dewar
1999-01-11  0:00               ` Simon Wright
1999-01-16  0:00               ` Chris Warwick
1999-01-16  0:00                 ` Simon Wright
1999-01-16  0:00                 ` robert_dewar
1999-01-18  0:00                   ` Chris Warwick
1999-01-18  0:00                     ` Matthew Heaney
1999-01-16  0:00                 ` Matthew Heaney
1999-01-16  0:00                   ` robert_dewar
1999-01-18  0:00                   ` Chris Warwick
1999-01-18  0:00                     ` robert_dewar
1999-01-18  0:00                       ` dennison
1999-01-18  0:00                       ` Tucker Taft
1999-01-19  0:00                         ` Chris Warwick
1999-01-19  0:00                           ` Stephen Leake
1999-01-19  0:00                           ` robert_dewar
1999-01-20  0:00                             ` Jeff Carter
1999-01-20  0:00                               ` robert_dewar
1999-01-21  0:00                                 ` Chris Warwick
1999-01-19  0:00                           ` Tom Moran
1999-01-18  0:00                     ` dennison
1999-01-18  0:00                     ` Matthew Heaney
1999-01-06  0:00   ` Simon Wright
1999-01-22  0:00   ` Nick Roberts
1999-01-05  0:00 ` Tom Moran
replies disabled

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