comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Problem with access types using Booch components.
Date: 11 Feb 2003 20:42:18 +0000
Date: 2003-02-11T20:42:18+00:00	[thread overview]
Message-ID: <x7vsmuu7dn9.fsf@smaug.pushface.org> (raw)
In-Reply-To: 5d6fdb61.0302111021.73b4bc4a@posting.google.com

402450@cepsz.unizar.es (Jano) writes:

> first try:
> it: Iterator:= New_iterator(C_access.all); <-- it raises tag error
> inside some booch source.

What compiler/version are you using?

With GNAT 3.15p I get this to compile without complaint (and to run,
though it's not a thorough test!).

Note the 'Class ....



with Collection_Test_Support;

procedure Jano is

   use Collection_Test_Support;

   type CU_P is access all CU.Collection;

   C : aliased CU.Collection;
   CP : CU_P := C'Access;

begin

   declare
      It : Containers.Iterator'Class := CU.New_Iterator (CP.all);
   begin
      null;
   end;

end Jano;




  parent reply	other threads:[~2003-02-11 20:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-11 18:21 Problem with access types using Booch components Jano
2003-02-11 18:49 ` Jano
2003-02-11 20:42 ` Simon Wright [this message]
2003-02-11 22:46   ` Jano
2003-02-12  9:06     ` Jano
2003-02-12 21:57       ` Simon Wright
2003-02-13 19:07         ` Jano
replies disabled

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