Say I have a type:
type A;
type XA is access constant A;
type A is
record
Member : Natural := 1;
Neighbor : XA;
end record;
I'm confused about the access constant part.
If I instantiate a instance of XA
that points to a instance of A
, what can I change while only holding the reference to the XA
"instance" ?
Can I change the member of the object that XA
points to ? I'd say no, but what about the Neighbor of the A
in the XA
object ?
Can someone explain the use of access constant
to me ?