Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: %p and different pointer representations Message-ID: <9707@smoke.BRL.MIL> Date: 25 Feb 89 02:33:58 GMT References: <9382@bloom-beacon.MIT.EDU> <234@mstan.Morgan.COM> <16112@mimsy.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 17 In article <16112@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: >I think this is what is known as an oversight (and goes to show why >standards committees should avoid inventions).... No, it's not an oversight. Obviously we could not require generic object pointers to be large enough to act as generic function pointers also. This is clearly reflected in the specification for void *. A second kind of generic pointer would have had to been invented to hold function addresses. We didn't invent one, on the grounds of "insufficient utility". Personally I would rather the %p format not have been introduced, but given the existence of void *, it was a natural addition. It is pretty easy to snipe at X3J11's work and imply that you could have done better, but I note that you didn't help formulate the standard. If you had any constructive criticism to offer, you should have done so during the public review process.