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,aaec211ca305e5ee X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: allocators for classwide types? Date: 1999/12/28 Message-ID: <3868E1B4.D5F6A23C@telepath.com>#1/1 X-Deja-AN: 565863936 Content-Transfer-Encoding: 7bit References: <38684DEE.6CB6F268@telepath.com> X-Accept-Language: en,pdf Content-Type: text/plain; charset=us-ascii X-Complaints-To: Abuse Role , We Care X-Trace: monger.newsread.com 946397393 216.14.8.29 (Tue, 28 Dec 1999 11:09:53 EST) Organization: Telepath Systems (telepath.com) MIME-Version: 1.0 NNTP-Posting-Date: Tue, 28 Dec 1999 11:09:53 EST Newsgroups: comp.lang.ada Date: 1999-12-28T00:00:00+00:00 List-Id: Robert A Duff wrote: > Ted Dennison writes: > > > I have a situation where I'd like to create a convienence routine that > > takes in two objects of classwide types, allocates objects of the > > appropriate type with a copy of those parameter values, then puts both > > objects in a record which gets returned to the user. > > Your code looks OK to me. Hmm. Apparently it is. I tried expanding my toy example into a compilable system, and Gnat had no trouble with it. > > Gnat actually generates a compiler error on my variant of this. ... > > You should post the text of the message. It was an internal Gnat error. That's obviously a bug, of course. But 95% of the time those are caused by my doing something illegal in a way that the compiler didn't expect. It looks like in this case I may have been doing something *legal* in a way the compiler didn't expect. I guess the right thing to do would be to try and expand my toy example to reproduce the bug, then submit it to ACT. That's not exactly how I wanted to spend my coding time on my vacation, but I guess if I always got what I wanted this would be a scary world indeed... -- T.E.D. Home - mailto:dennison@telepath.com WWW - http://www.telepath.com/dennison/Ted/TED.html