Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!purdue!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Help, page 197 K&R !!! Message-ID: <10491@smoke.BRL.MIL> Date: 6 Jul 89 16:37:44 GMT References: <646@kl-cs.UUCP> <236100020@mirror> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 10 In article <236100020@mirror> pat@mirror.TMC.COM writes: >I agree that this is weard and it is bad programming practice, but is >it possible that if the programmer knew what he was doing should it be >okay for him to do it? In modern C, it is still possible to pun pointers like that, but a cast or a union must be used. That documents quite clearly that the programmer really did intend the ugly construct. The old way, an inadvertent error would be silently accepted and cause mysterious, hard to diagnose bugs.