Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!udel!mmdf From: HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen) Newsgroups: comp.os.minix Subject: ARITHMETIC ON ENUMS? Message-ID: <30007@nigel.ee.udel.edu> Date: 10 Sep 90 17:36:31 GMT Sender: mmdf@ee.udel.edu Lines: 11 Someone told me that my c68 compiler won't do arithmetic on enums (he complains that he cannot add two enums) This was made deliberately, I thought enums are symbolic constants, which make an ordered type. All kinds of comparisons should be fine with enums, but arithmetic? My K&R books says very little about enums (they came later). My decision is to let YOU decide if I should allow arithmetic on enums. C.v.W.