Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!decvax!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: %p and different pointer representations Message-ID: <11947@haddock.ima.isc.com> Date: 3 Mar 89 21:37:38 GMT References: <11915@haddock.ima.isc.com> <9765@smoke.BRL.MIL> <9571@bloom-beacon.MIT.EDU> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 13 In article <9571@bloom-beacon.MIT.EDU> scs@adam.pika.mit.edu (Steve Summit) writes: >In article <11915@haddock.ima.isc.com> karl@haddock.ima.isc.com (Karl Heuer) writes: >>Therefore, a completely generic pointer type (to function or data) is >>`union {void (*)(void); void *}', though I can't think of any practical >>use for such a thing. > >[Symbol table, etc.] I stand corrected. I was thinking in terms of using the union as a type pun; a tagged union (or any other protocol which guarantees that the member fetched is the one most recently stored) is indeed useful. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint