Xref: utzoo comp.lang.c:26755 comp.lang.misc:4394 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!psuvax1!rutgers!umn-d-ub!cs.umn.edu!mike From: mike@cs.umn.edu (Mike Haertel) Newsgroups: comp.lang.c,comp.lang.misc Subject: Re: C strongly typed? Message-ID: <1990Mar10.043359.2010@cs.umn.edu> Date: 10 Mar 90 04:33:59 GMT References: <259@eiffel.UUCP) <1990Mar1.172526.28683@utzoo.uucp) <849@enea.se) <1990Mar7.182230.5517@utzoo.uucp) <862@enea.se> Organization: Free Software Foundation Lines: 16 In article <862@enea.se> sommar@enea.se (Erland Sommarskog) writes: >Well, apparently I am allowed to mix apples and oranges. If I have >two types of data that both happens to be represented by integers, >but have no logical connection what so ever I cannot apparently >express that in C. And consequently I cannot take help from the >compiler to catch inadvertent mixups in for instance procedure calls. So declare struct apple { int v; }; struct orange { int v; }; C uses name equivalence for structure types. -- Mike Haertel "We are trying to support small memory machines." -- Larry McVoy