Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: effect of free() Message-ID: <11070@smoke.BRL.MIL> Date: 14 Sep 89 21:54:31 GMT References: <319@cubmol.BIO.COLUMBIA.EDU> <3756@buengc.BU.EDU> <10988@smoke.BRL.MIL> <9339@attctc.Dallas.TX.US> <1641@levels.sait.edu.au> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 16 In article <1641@levels.sait.edu.au> CCDN@levels.sait.edu.au (DAVID NEWALL) writes: >I have a philosophy which I am going to share with you: Avoid unnecessary >restrictions. Is it truly necessary that one not be able to *look* at a >pointer without first knowing that it is valid? I claim that it is not. I'm of course well acquainted with that "philosophy". However, in the real world there are systems designed by people using different philosophies. In particular, there is a school of thought that says machine architecture should be designed to assist in program reliability. That school occasionally influences computer architectures such that actions like merely continuing to shuffle around invalid pointers cause an error trap to be taken. Given that some systems do this, is it necessary for the C standard to deliberately make implementation in such environments harder or slower than necessary? So far we haven't seen compelling reasons to.