comp.lang.ada
 help / color / mirror / Atom feed
* OUT = IN OUT for pointers ???
@ 2001-11-06 23:58 Pi
  2001-11-08 14:12 ` Marc A. Criley
  0 siblings, 1 reply; 3+ messages in thread
From: Pi @ 2001-11-06 23:58 UTC (permalink / raw)


I came across some code where a pointer was passed in mode OUT.
If the pointer would be null initially, the code wouldn't work.

But it does work.

With a debugger I verified :
Even as the pointer is in mode OUT,
it's value is passed as if it was IN OUT.

I use GNAT, but Aonix seams to have the same behavior too.

Now, my question :
Must it be like that and is defined that way in the ARM ?
or it is an option that it left to the choice of the implementation ?
or is it a bug ?

-- 
3,14159265359



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-11-08 17:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-06 23:58 OUT = IN OUT for pointers ??? Pi
2001-11-08 14:12 ` Marc A. Criley
2001-11-08 17:46   ` Jeffrey Carter

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