Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!ames!haven!decuac!shlump.nac.dec.com!tkou02.enet.dec.com!diamond From: diamond@tkou02.enet.dec.com (diamond@tkovoa) Newsgroups: comp.lang.c++ Subject: Re: references to dereferenced null pointers Message-ID: <1448@tkou02.enet.dec.com> Date: 9 Apr 90 06:13:28 GMT References: <5764@videovax.tv.tek.com> <15126@cbnews.ATT.COM> <1435@tkou02.enet.dec.com> <58@cdss.UUCP> Reply-To: diamond@tkou02.enet.dec.com (diamond@tkovoa) Organization: Digital Equipment Corporation Japan , Tokyo Lines: 12 In article <58@cdss.UUCP> culliton@cdss.UUCP (Tom Culliton) writes: >Another thought that stems from this and a little puzzle :-) how would you >implement sizeof as a macro? I don't think you can. How can a macro compute sizeof(-3) without using the builtin sizeof? (And in case you manage that, here are two more for you: sizeof -3 (no parentheses needed with an expression), and sizeof(int).) -- Norman Diamond, Nihon DEC diamond@tkou02.enet.dec.com This_blank_intentionally_left_underlined________________________________________