- 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")?
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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 354 |
Nodes: | 16 (2 / 14) |
Uptime: | 40:31:35 |
Calls: | 7,650 |
Calls today: | 2 |
Files: | 12,811 |
Messages: | 5,699,696 |