Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!decwrl!labrea!polya!kaufman From: kaufman@polya.Stanford.EDU (Marc T. Kaufman) Newsgroups: comp.sys.mac.programmer Subject: Re: LSC almost gets it right. Message-ID: <3873@polya.Stanford.EDU> Date: 8 Sep 88 00:25:19 GMT References: <5077@fluke.COM> <490@poseidon.UUCP> Reply-To: kaufman@polya.Stanford.EDU (Marc T. Kaufman) Organization: Stanford University Lines: 12 In article <490@poseidon.UUCP> ech@poseidon.UUCP (Edward C Horvath) writes: >What drives me NUTS about LSC prototyping... is the >SILENT coercion of (incorrect) arguments. Example: you pass 0 for the space >parameter to NewWindow. This is an error, folks, it needs to be NIL or NULL >or, in any case, a LONG zero. LSC is happy to silently notice that >the value ought to be long, and indeed generates code to push a long zero. Well, K&R says that '0' casts correctly to any NIL type. If you were using MPW, '0' would already be 32 bits. Syntax correctness does not imply semantic correctness. Marc Kaufman (kaufman@polya.stanford.edu