comp.lang.ada
 help / color / mirror / Atom feed
* Ada.Containers.Indefinite_Holders in GNAT and Ada2012
@ 2014-08-09 19:25 Victor Porton
  2014-08-09 19:43 ` Victor Porton
  2014-08-09 21:54 ` Simon Wright
  0 siblings, 2 replies; 8+ messages in thread
From: Victor Porton @ 2014-08-09 19:25 UTC (permalink / raw)


I tried to write:

Element(Object)'Access;

for "Object" being a value of an instance of 
Ada.Containers.Indefinite_Holders.

This does not work because the return type of Element is not aliased.

Then I tried:

Reference(Object).all'Access;

This does not work because in GNAT 4.9 a-coinho.ads source file is not up to 
date with Ada2012 and there are no Reference function here.

My questions:

1. How long to wait for GNAT to work with this? (in which GNAT version?)

2. In a conforming Ada2012 compiler `Reference(Object).all'Access;` is 
semantically correct, isn't it?

In the meantime, I need to write for my private use a container similar to 
Ada.Containers.Indefinite_Holders for aliased objects by myself :-(

-- 
Victor Porton - http://portonvictor.org

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

end of thread, other threads:[~2014-08-11 23:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-09 19:25 Ada.Containers.Indefinite_Holders in GNAT and Ada2012 Victor Porton
2014-08-09 19:43 ` Victor Porton
2014-08-10 13:06   ` Victor Porton
2014-08-10 15:32     ` Simon Wright
2014-08-11 11:01     ` AdaMagica
2014-08-11 15:38     ` Adam Beneschan
2014-08-11 23:58   ` Randy Brukardt
2014-08-09 21:54 ` Simon Wright

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