Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpda!hpdslab!hpiacla!mlight From: mlight@hpiacla.HP.COM (Mike Light ) Newsgroups: comp.lang.c Subject: Re: typedef laxity Message-ID: <4940002@hpiacla.HP.COM> Date: 13 Apr 88 20:20:27 GMT References: <1070@maynard.BSW.COM> Organization: Hewlett Packard Lines: 20 <>>It seems to me someone should complain about this code: <>> <>> typedef int TEMPERATURE; <>> typedef int PRESSURE; <>> <>> TEMPERATURE tx, ty; <>> PRESSURE px, py; <>> <>> ty = py; /* type clash */ {Well, I have gotten several mail messages and seen several followups all {saying the same thing: "That's just the way it works." As opposed to {saying "It works this way because of ". Typedef is little different than a macro substitution for type definitions. It wasn't meant to create a "new" type somehow different or incompatible with other types. Sounds to me like you need Pascal. {Larry Campbell The Boston Software Works, Inc. Mike Light -- Hewlett-Packard Co. ..!hpda!hpiacla!mlight