home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / vms / 19172 < prev    next >
Encoding:
Internet Message Format  |  1992-12-12  |  1.0 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!ucbvax!lrw.com!leichter
  2. From: leichter@lrw.com (Jerry Leichter)
  3. Newsgroups: comp.os.vms
  4. Subject: RE: PROBLEM WITH VAX C
  5. Message-ID: <9212121335.AA28540@uu3.psi.com>
  6. Date: 12 Dec 92 12:12:30 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 26
  11.  
  12.  
  13.     when I have in Borland C two string-constants without a delimitor in
  14.     the code, the compiler merges them to one.
  15.  
  16.     On VAX-C I receive a message that there is a comma missing between the
  17.     two constants.
  18.  
  19.     how can I force the merging of the constants in VAX-C?
  20.  
  21. You can't.
  22.  
  23.     in Borland C following two lines are equal after compiling:
  24.  
  25.         printf("one " "two ");
  26.  
  27.         printf("one two ");
  28.  
  29. In VAX C, the first one is in error.
  30.  
  31. Merging of adjacent string constants was an ANSI C invention.  I don't know
  32. whether Borland C is fully ANSI compatible, but it certainly seems to support
  33. this feature.  VAX C does NOT claim it is ANSI C compatible, and while it
  34. supports many ANSI C features, it does NOT support this one.
  35.  
  36.                             -- Jerry
  37.  
  38.