Path: utzoo!utgpu!watmath!att!pacbell!ames!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!sdrc!scjones From: scjones@sdrc.UUCP (Larry Jones) Newsgroups: comp.lang.c Subject: Re: Davidsen's device Message-ID: <774@sdrc.UUCP> Date: 7 Aug 89 22:59:03 GMT References: <1430@crdgw1.crd.ge.com> <888@tub.UUCP> Organization: Structural Dynamics Research Corp., Cincinnati Lines: 18 In article <888@tub.UUCP>, net@tub.UUCP (Oliver Laumann) writes: > In article <1430@crdgw1.crd.ge.com> davidsen@crdos1.UUCP (bill davidsen) writes: > > (*(asect < 1.0 ? hacs2 : hacs1)(asect); > > You can even omit the * since it's superfluous. > > Or is it? Our K&R (the old edition) doesn't seem to say anything about > this, but "gnucc -pedantic -ansi" doesn't complain about the following > program (a good heuristic for checking whether it's valid C): dpANS C allows the star to be omitted, K&R C requires it. ---- Larry Jones UUCP: uunet!sdrc!scjones SDRC scjones@SDRC.UU.NET 2000 Eastman Dr. BIX: ltl Milford, OH 45150-2789 AT&T: (513) 576-2070 "You can't get a body like mine in a bottle -- unless you push REAL HARD." - Judy Tenuta / Dr. Pepper