Path: utzoo!mnetor!uunet!husc6!uwvax!oddjob!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: The D Programming Language: cases Message-ID: <10761@mimsy.UUCP> Date: 22 Mar 88 19:16:56 GMT References: <25200@cca.CCA.COM> <3278@okstate.UUCP> <336@wsccs.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 30 In article <336@wsccs.UUCP> terry@wsccs.UUCP (terry) writes: >... Since the discussion centers around 'D', which by context is >simply "a new standard C which may not be compatable with >the current K&R standard of C so we'll call it 'D'", That is not what *I* mean by `D'. I thought we were discussing a language that would be a replacement for C as a systems and/or general-purpose programming language. >I believe that "upward" compatability must be maintained if all C >software is to be recompiled in D with minimal tweaking. I had in mind more of an automatic translator (in which inserting `fallthrough' statements would be trivial). Of course this is largely just an intellectual exercise anyway (and, some say, a light workout at that :-) ). >While a change this drastic [requiring `fallthrough' for case fallthrough] >_could_ be worked around with something as simple as > > #define case fallthrough; case > >this does _not_ help code generators such as YACC and LEX generate this new >code. Actually, as it happens, both yacc and lex always generate the `break' for you. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris