From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1e514fb9f9333128 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-11 12:43:24 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Problem with access types using Booch components. Date: 11 Feb 2003 20:42:18 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <5d6fdb61.0302111021.73b4bc4a@posting.google.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1044996202 5704 62.49.19.209 (11 Feb 2003 20:43:22 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Tue, 11 Feb 2003 20:43:22 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:34007 Date: 2003-02-11T20:42:18+00:00 List-Id: 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;