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=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,9d56a9e1aac251b6 X-Google-Attributes: gid103376,public From: "Pascal Obry" Subject: Re: Access to classwide type Date: 2000/07/24 Message-ID: <8li9rj$pq6$1@wanadoo.fr>#1/1 X-Deja-AN: 650273192 References: <8lfuof$ipb$1@nnrp1.deja.com> <8li0m5$1i4$1@nnrp1.deja.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 964471475 26438 164.138.151.128 (24 Jul 2000 20:44:35 GMT) Organization: home NNTP-Posting-Date: 24 Jul 2000 20:44:35 GMT Newsgroups: comp.lang.ada Date: 2000-07-24T20:44:35+00:00 List-Id: reason67@my-deja.com a �crit dans le message <8li0m5$1i4$1@nnrp1.deja.com>... >How in the heck does it do that? Does Ada.Unchecked_Deallocation read >the tag and do a `size on the data structure to determine the size of >the memory in heap to release? I am suprised by this. It is more >implicit than I am used to in Ada. Well "malloc" takes the size of the object but not "free". I think that the OS is able to know the size from the start address of the chunk of memory. Nothing so special here to me... At least it seems not to be an Ada issue. Pascal. --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://perso.wanadoo.fr/pascal.obry --| --| "The best way to travel is by means of imagination"