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,3f74d676465455d2 X-Google-Attributes: gid103376,public From: eachus@spectre.mitre.org (Robert I. Eachus) Subject: Re: Why a PROGRAM ERROR? Date: 1998/12/14 Message-ID: #1/1 X-Deja-AN: 422162804 References: <3670178F.8751F9B9@nowhere.com> <3671433E.79C04602@nowhere.com> Organization: The Mitre Corp., Bedford, MA. Newsgroups: comp.lang.ada Date: 1998-12-14T00:00:00+00:00 List-Id: In article <3671433E.79C04602@nowhere.com> Rusnak writes: > Any time I try to cast the anonymous access type to > My_Instance'Class to the type My_Class_Object_Type, > a program error is raised. Why is this the case, why is the > error not caught at compile time, and how can I resolve > the error? It seems to only occur when a cast like this one is > made inside an instantiation of a generic package. Could it be a violation of accessability levels? The kluge example changes the accessability level of the value assigned. (But I would really have to see more of the code to see if this is the problem, in particular, the declaration of Command_Object.) -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...