Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!cf-cm!cybaswan!cs9h9tts From: cs9h9tts@cybaswan.UUCP (t.simpson) Newsgroups: comp.sys.acorn Subject: Re: More about BASIC vs. Pascal vs. C (the flame war continues !) Message-ID: <2294@cybaswan.UUCP> Date: 13 Feb 91 10:39:16 GMT References: Reply-To: cs9h9tts@cybaswan.UUCP (t.simpson) Lines: 41 In article mathew@mantis.co.uk (mathew) writes: >rkl@and.cs.liv.ac.uk (Richard K Lloyd) writes: >>In article <1991Feb10.180855.17062@cns.umist.ac.uk>, >>rogersh%t1a@uk.ac.man.cs writes: >> >>hello(param1,param2) >>int param1,param2; >>{ >> printf("Param 2 = %d\n",param2); >>} >> >>main() >>{ >> hello(1); >>} >> >>Yes folks, I forgot a parameter and THERE WAS NOT EVEN A WARNING FROM THE >>COMPILER! > >Congratulations. You've realized why nobody makes non-ANSI compilers any >more. Have a peanut. > >>I put it through lint too and NO WARNING AGAIN! > >I'm suspicious of this; lint ought to be able to notice things like that. I've >heard some very nasty comments about HP compilers, so I suspect that you're >being misled. I have this funny feeling that Rich was using small-lint (slint) and not lint, all slint does (i think) is to count brackets etc. >>>>is the fact that a "Hello World" program in C for the Archimedes can turn >>out to be big (30 K ?) *and* you need the Shared C library (60K). The >>equivalent BASIC program ? About 30 bytes :-) :-) > I've gotto admit, I do dislike the memory in-efficiency of C. > Tom Simpson : cs9h9tts@uk.ac.swan.pyr