Path: utzoo!utgpu!water!watmath!clyde!att!ihuxy!lapin From: lapin@ihuxy.ATT.COM (Tweedle Dee & Tweedle Dum) Newsgroups: comp.sys.amiga Subject: Re: Don't forget the comma Message-ID: <2683@ihuxy.ATT.COM> Date: 24 Oct 88 17:41:01 GMT References: <8810192323.AA21251@jade.berkeley.edu> Reply-To: lapin@ihuxy.UUCP (David Roch) Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 29 In article <8810192323.AA21251@jade.berkeley.edu> writes: >[] >Has anyone else run into this "feature" of Manx C? >It happens with both 3.4b and 3.6a (at least, the ones I have). >Minimal case - > >char *array[] = { "s1" "s2" }; > >That's it. >Now, it seems obvious to me (and every other compiler I >have used) that this is a syntax error. But the Manx compiler never even >burps. This is not an error. According to the proposed ANSI C standard, the two strings are concatentated, yielding "s1s2". The purpose of this is so that long text lines can still be readable. e.g. char *msg = "The quick brown fox jumped over the " "lazy brown dog."; My source of information: The C Programming Language 2nd Ed. (pg. 38) Kernigan/Ritchie Prentice Hall, 1988 David Roch ...!att!ihuxy!lapin or lapin@ihuxy.att.com