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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4f325eb9bb392b2f X-Google-Attributes: gid103376,public From: Tucker Taft Subject: Re: Delegating operations to parent (generic formal type) Date: 2000/08/29 Message-ID: <39AC2C1B.FFA2E69C@averstar.com>#1/1 X-Deja-AN: 664067268 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@inmet2.burl.averstar.com X-Trace: inmet2.burl.averstar.com 967584796 16279 141.199.8.77 (29 Aug 2000 21:33:16 GMT) Organization: AverStar (formerly Intermetrics) Burlington, MA USA Mime-Version: 1.0 NNTP-Posting-Date: 29 Aug 2000 21:33:16 GMT Newsgroups: comp.lang.ada Date: 2000-08-29T21:33:16+00:00 List-Id: Simon Wright wrote: > > (This is a repost, in the hope someone can help!!) > > The code below is accepted by GNAT (3.13a1, 3.12p at least) but not by > APEX 3.2.0b (Solaris) or the OA special edition (7.2). > > The problem arises in the body of Containers.Maps.Synchronized. > > APEX says it can't resolve the call Initialize (Map_Base (M)) in > Containers.Maps.Synchronized.Initialize. > > OA ditto, followed by a fatal assertion error (or was it a bad memory > access?) in the instantiation. > > This is a pretty common idiom in Smalltalk (super bind, super > initialize) -- is there an Ada equivalent that would help here? I > can't see why the compilers don't see the Initialize(Map_Base) > operation, we're in a child package and should be able to see the > private operations of Map_Base -- which include those of Controlled. The use of Initialize is legal. This looks like an old-fashioned bug in APEX and ObjectAda 7.2. The current AdaMagic front end has no problem "seeing" the Initialize operation. -Tuck -- -Tucker Taft stt@averstar.com http://www.averstar.com/~stt/ Technical Director, Commercial Division, AverStar (formerly Intermetrics) (http://www.averstar.com/services/IT_consulting.html) Burlington, MA USA