Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!amdcad!sun!pepper!cmcmanis From: cmcmanis@pepper.UUCP Newsgroups: comp.sys.amiga Subject: Re: M2Amiga, some answers. Message-ID: <34628@sun.uucp> Date: Mon, 23-Nov-87 15:21:38 EST Article-I.D.: sun.34628 Posted: Mon Nov 23 15:21:38 1987 Date-Received: Thu, 26-Nov-87 04:35:42 EST References: <1104@sugar.UUCP> Sender: news@sun.uucp Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 22 Keywords: Modula-2, M2Amiga, Programming, Low Level Features In article <1104@sugar.UUCP> schaub@sugar.UUCP (Markus Schaub) writes: >>an interesting nitpick, but the designers of C wanted programmers to be able >>to make calls to the same routine with a varying number of arguments. This > >BUT also a big source for programming errors. Does your C compiler >complain if you call a 3 parameter procedure with just two parameters? >What is the result? Nothing, strange behaviour or GURUs? How can you >find this bug? Maybe this is no problem for you, it definitely would >be one for me. This is my opinion, DON'T start any war C vs. Modula-2! Well the Lattice C compiler (>= 3.10) supports prototyping that will notify you if you have the wrong number of arguments and if they are the wrong type. It also lets you *not* specify the total number of arguments (like just the first three) is you so desire. Note that I like Modula 2 and I like C, I use C because that way I don't have to switch compilers when I get home from work :-) But I do own two M2 compilers, and my wife won't touch C (being a Mesa fan that she is). --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you.