Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 8/23/84; site ucbcad.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!ucbvax!ucbcad!faustus From: faustus@ucbcad.UUCP (Wayne A. Christopher) Newsgroups: net.lang.c Subject: Re: Re: Question of Ignorance Message-ID: <248@ucbcad.UUCP> Date: Thu, 16-May-85 18:28:47 EDT Article-I.D.: ucbcad.248 Posted: Thu May 16 18:28:47 1985 Date-Received: Sat, 18-May-85 01:24:25 EDT References: <198@unccvax.UUCP>, <1427@bbncca.ARPA> <5590@utzoo.UUCP> <480@bbnccv.UUCP> Organization: UC Berkeley CAD Group, Berkeley, CA Lines: 14 This discussion has brought up another point -- somebody posted an example where he casted a lhs, and somebody pointed out that you can't do that. What I am wondering is, why can't you? There seem to be no semantic problems involved, and it can be very useful for something like: #define FREE(ptr) free(char *) ptr); (char *) (ptr) = (char *) -1; I have wanted to do this at various times, when I don't want to have to always cast the argument to FREE and I don't ever want to reference freed data accidentally... I couldn't think of a decent way to do this that wouldn't cause compiler warnings about pointers being assigned to the int -1... Wayne