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-Thread: 103376,95dad6602b955ce1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Thu, 13 Oct 2005 19:32:27 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <1129043820.987947.200870@z14g2000cwz.googlegroups.com> <1129136767.955381.143030@g47g2000cwa.googlegroups.com> <1129215004.069760.84050@g49g2000cwa.googlegroups.com> <1129220290.938615.36390@o13g2000cwo.googlegroups.com> Subject: Re: Problem with "limited with" in a *real* application Date: Thu, 13 Oct 2005 19:36:11 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4952.2800 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4952.2800 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-FKm8EknUimtFkVbFmNospKQ2hNLeOr92/tWN7Ac52ePVxvGi3MdZdK0HZ8OtTTXKGN1gKFBNYrY1I0W!c5WXY3XLQv3ZA9S/raZKn1XP4c/xfejzAVUKjSFO2XoGp/0ijAVajwFo3N6uToAj1Qum/fq7Owfa!5mceN7RkLFv0CA== X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:5624 Date: 2005-10-13T19:36:11-05:00 List-Id: "Lucretia" wrote in message news:1129220290.938615.36390@o13g2000cwo.googlegroups.com... > In reference to the second part of my question above, am I using 'Class > correctly here? I am confused as to when to use them. I think so. My rule of thumb is that a non-controlling parameter of a specific tagged type is almost always a bug. (The main exception being constructors, as those generally only work for one kind of object.) > I'll bring in the Minimal_Frame package into the library tomorrow so I > can post it as I'm using way too much casting (I think) due to the > compiler throwing up errors. Yet as I understand it I shouldn't need to > cast all these calls, especially on the first parameter, Self, or maybe > I'm confused (most probably). I think there is some bug in the compiler, since what you are doing looks OK to me. It's roughly what I would do in this circumstance. Certainly, the conformance error suggests a compiler bug, because the types are clearly exactly the same. Given the newness of the compiler and the near total lack of test cases for compiler writers to use, I'd expect a lot of bugs in these new Ada 200Y features. So don't get too discouraged about that (but it might mean you have to wait a while). We had to delay releasing Claw for almost 18 months, because none of the compilers (including ours!) could compile it when we first wrote it. We had to wait for the bug fixes to propagate into the standard versions. Randy.