Xref: utzoo comp.lang.c:26786 comp.lang.misc:4403 Path: utzoo!censor!geac!torsqnt!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!eru!luth!sunic!enea!sommar From: sommar@enea.se (Erland Sommarskog) Newsgroups: comp.lang.c,comp.lang.misc Subject: Re: C strongly typed? Message-ID: <873@enea.se> Date: 11 Mar 90 12:44:41 GMT References: <862@enea.se> <90069.005634CMH117@psuvm.psu.edu> Organization: Enea Data AB, Sweden Lines: 17 Charles Hannum (CMH117@psuvm.psu.edu) writes: >But if I may ask, what's your point? Anyone programmer with half a brain >would know that a Granny Smith isn't equivalent to a tangerine. Stupidity. Ever heard of the work "mistake"? Say that I have the routine Macedonia declared as (in Ada syntax): FUNCTION Macedonia(Granny_smith : IN Apple; Tangerine : IN Orange) RETURN Some_type; Now, I'm calling this from another module. In which order comes the parameters now? Ah, it was probably the orange first, wasn't it? A strongly typed language like Ada will catch this error. With C or Pascal I have to spend half a day to find out why the damned fruit salad doesn't taste as intended. -- Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se