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,86ec22e070e319c0 X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: How do I get this to work?? Date: 1999/01/19 Message-ID: <782rcn$kev$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 434509824 References: <77vi4q$o7l$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x11.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Tue Jan 19 20:53:50 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-01-19T00:00:00+00:00 List-Id: In article , warwicks@telusplanet.net (Chris Warwick) wrote: > Of the Ada compilers I have used, the > unchecked_deallocation on all of them > was to set the pointer to 0 and carry on (i.e., no calls > to deallocate, no > storing the un-used memory for later re-allocation by the > Ada program). When I > first stumbled into this I was told that this was for > safety reasons. It may > have been that I have been using safety critical versions > of these Ada > compilers, and "standard" compilers are different... > I have already discussed this with Chris. He claimed that VADS behaved as above, which I know to be incorrect, and he claimed that Alsys behaved as above. I particularly know the latter claim to be false, since I wrote that code! The one thing in Alsys that he may be referring to was that for certain cases of small blocks in local collections, we deferred collecting the storage till scope exit, but that is the only case where there was even a deferral of the free operation. The claim that this has to do with safety is just wrong. And as for safety critical subsets, clearly these do not even allow Unchecked_Deallocation in the first place. Clearly Chris's statements here are based on misinformation, or misinterpretation of some kind, and it is important not to be mislead by them. Unchecked_Deallocation works just fine on all Ada compilers and always has, it is as reliable as free in C (and indeed on many compilers translates directly into a free call). -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own