home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!agate!ucbvax!lrw.com!leichter
- From: leichter@lrw.com (Jerry Leichter)
- Newsgroups: comp.os.vms
- Subject: RE: PROBLEM WITH VAX C
- Message-ID: <9212121335.AA28540@uu3.psi.com>
- Date: 12 Dec 92 12:12:30 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 26
-
-
- when I have in Borland C two string-constants without a delimitor in
- the code, the compiler merges them to one.
-
- On VAX-C I receive a message that there is a comma missing between the
- two constants.
-
- how can I force the merging of the constants in VAX-C?
-
- You can't.
-
- in Borland C following two lines are equal after compiling:
-
- printf("one " "two ");
-
- printf("one two ");
-
- In VAX C, the first one is in error.
-
- Merging of adjacent string constants was an ANSI C invention. I don't know
- whether Borland C is fully ANSI compatible, but it certainly seems to support
- this feature. VAX C does NOT claim it is ANSI C compatible, and while it
- supports many ANSI C features, it does NOT support this one.
-
- -- Jerry
-
-