comp.lang.ada
 help / color / mirror / Atom feed
* Constancy of X'Address?
@ 2023-04-05  9:24 Niklas Holsti
  2023-04-07 17:04 ` Maxim Reznik
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Niklas Holsti @ 2023-04-05  9:24 UTC (permalink / raw)


A discussion in comp.arch (on the new C23 standard for C) brought up 
these questions, which I could not answer with confidence:

- Is the address of an object constant in Ada? That is, if I have some 
object X in an Ada program, do repeated applications of X'Address always 
return the same value?

- Does the answer depend on how X is allocated (created): on the library 
level, on the stack, or in a pool ("new")?

The issue behind this question is whether an Ada program could use 
garbage collection that moves objects around, for example a compacting 
collector.

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

end of thread, other threads:[~2023-04-08  9:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-05  9:24 Constancy of X'Address? Niklas Holsti
2023-04-07 17:04 ` Maxim Reznik
2023-04-07 17:19 ` Jeffrey R.Carter
2023-04-08  9:03 ` Randy Brukardt

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