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,ed6a891101ff4e06 X-Google-Attributes: gid103376,public From: Simon Wright Subject: Re: Freeing Pointers to classwide types Date: 1998/09/26 Message-ID: #1/1 X-Deja-AN: 395273171 X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 References: <1ftmFTC69GA.191@samson.airnet.net> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 906885497 nnrp-11:4500 NO-IDENT pogner.demon.co.uk:158.152.70.98 Organization: At Home Newsgroups: comp.lang.ada Date: 1998-09-26T00:00:00+00:00 List-Id: If you have said type Event is type Event_P is access Event'Class; then you need to say procedure Delete is new Unchecked_Deallocation (Event'Class, Event_P); ^^^^^^ because we have (from GNAT's source) generic type Object (<>) is limited private; type Name is access Object; procedure Unchecked_Deallocation (X : in out Name); so you fill in the blanks from the declaration of type Event_P. It took me ages to find this answer when I first had the problem!