home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / vms / 19207 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.9 KB  |  57 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!mcsun!dxcern!dscomsa!zeus02.desy.de!hallam
  3. From: hallam@zeus02.desy.de (Phill Hallam-Baker)
  4. Subject: Re: PROBLEM WITH VAX C                                                              
  5. Message-ID: <Bz8FsF.8D9@dscomsa.desy.de>
  6. Sender: usenet@dscomsa.desy.de (usenet)
  7. Reply-To: Hallam@zeus02.desy.de
  8. Organization: Deutsches Elektronen Synchrotron, Experiment ZEUS bei HERA
  9. References: <1992Dec11.233154.28523@nntpd2.cxo.dec.com> <Bz5zIo.6FE@dale.cts.com>
  10. Date: Mon, 14 Dec 1992 04:43:26 GMT
  11. Lines: 44
  12.  
  13. In article <Bz5zIo.6FE@dale.cts.com>, glippert@dale.cts.com (George Lippert)
  14. writes:
  15.  
  16. |>Paul S. Winalski (winalski@adserv.enet.dec.com) wrote:
  17. |>> Programmierer@BEIZ.mediatex.ch (055485666: MEDIAtex AG) writes:
  18. |>> |>On VAX-C I receive a message that there is a comma missing between the
  19. |>> |>two constants.
  20. |>> |>
  21. |>> |>how can I force the merging of the constants in VAX-C?
  22. |>> |>
  23. |>> |>in Borland C following two lines are equal after compiling:
  24. |>> |>    printf("one " "two ");
  25. |>> |>    printf("one two ");
  26. |>> You can't.  Sorry.
  27. |>
  28. |>Any Standard C compiler will do this.  The problem is that VAX C isn't ANSI.
  29. |>
  30. |>Shame on DEC for this. Two days from today (ie. 14 Dec 92) will mark the
  31. |>third
  32. |>anniversary of the ANSI approval of the Standard.  How much longer will DEC
  33. |>take!?
  34. |>
  35. |>You could buy a third party Standard C compiler for your VMS machine.  Here's
  36. |>a reference to the only one I know about:
  37. |>
  38. |>* TauMetric, ANSI C for VMS, La Mesa, CA, Sue Lindsey (Sales) 619.697.7674
  39.  
  40. DEC C for alpha claims to be standard ANSI. It is also to be avaliable for VAX
  41. at some point by the looks...
  42.  
  43. In the meantime the hack :-
  44.  
  45. printf ("%s%S", "one", "two");
  46.  
  47. works provided "one" and two are not intended to contain "%" stuff.
  48.  
  49. Three years for implementation of ANSI standards ain't that bad. When do you
  50. think the FORTRAN 90 compilers will be out? 
  51.  
  52. ANSI C is a plot to make everyone buy another copy of K&R.
  53.  
  54. --
  55.  
  56. Phill Hallam-Baker
  57.