Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!udel!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: effect of free() Message-ID: <11018@smoke.BRL.MIL> Date: 10 Sep 89 10:39:12 GMT References: <319@cubmol.BIO.COLUMBIA.EDU> <3756@buengc.BU.EDU> <1989Aug17.005548.745@twwells.com> <16022@vail.ICO.ISC.COM> <248@seti.inria.fr> <246@ssp1.idca.tds.philips.nl> <172@cpsolv.UUCP> <29110@news.Think.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 13 In article <29110@news.Think.COM> barmar@think.COM (Barry Margolin) writes: >What may be needed to satisfy everyone is a built-in operation that >tells whether a pointer is valid to use. My opinion is that if the programmer doesn't know that without applying such a test, his code is out of control. You might think that such a test would be useful in implementing library routines, where the implementor has no control over the user of his function and wants to "be gentle" when it is abused. However, just because a pointer is valid does not mean that the caller is using the function correctly. So I think that even in this case it would be of limited utility.