Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!pilchuck!dataio!fnx!nazgul!bright From: bright@nazgul.UUCP (Walter Bright) Newsgroups: comp.lang.c Subject: Re: TC++: "floating point formats not linked" Message-ID: <279@nazgul.UUCP> Date: 7 Mar 91 07:21:01 GMT References: <1991Feb9.193059.14322@ucselx.sdsu.edu> <268@nazgul.UUCP> <15316@smoke.brl.mil> Reply-To: bright@nazgul.UUCP (Walter Bright) Organization: Zortech, Seattle Lines: 10 In article <15316@smoke.brl.mil> gwyn@smoke.brl.mil (Doug Gwyn) writes: /You could of course also have the compiler pay special attention to the /format strings for *scanf() and *printf(), although that is not foolproof. I think this would be a bug in the compiler for these reasons: 1. The format strings may not be available to the compiler, as they may be built dynamically or be in another module. 2. The library is supposed to be independent of the compiler. Having the compiler recognize these things could make it very problematical if somebody rolled their own printf/scanf.