home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!mcsun!dxcern!dscomsa!zeus02.desy.de!hallam
- From: hallam@zeus02.desy.de (Phill Hallam-Baker)
- Subject: Re: PROBLEM WITH VAX C
- Message-ID: <Bz8FsF.8D9@dscomsa.desy.de>
- Sender: usenet@dscomsa.desy.de (usenet)
- Reply-To: Hallam@zeus02.desy.de
- Organization: Deutsches Elektronen Synchrotron, Experiment ZEUS bei HERA
- References: <1992Dec11.233154.28523@nntpd2.cxo.dec.com> <Bz5zIo.6FE@dale.cts.com>
- Date: Mon, 14 Dec 1992 04:43:26 GMT
- Lines: 44
-
- In article <Bz5zIo.6FE@dale.cts.com>, glippert@dale.cts.com (George Lippert)
- writes:
-
- |>Paul S. Winalski (winalski@adserv.enet.dec.com) wrote:
- |>> Programmierer@BEIZ.mediatex.ch (055485666: MEDIAtex AG) writes:
- |>> |>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?
- |>> |>
- |>> |>in Borland C following two lines are equal after compiling:
- |>> |> printf("one " "two ");
- |>> |> printf("one two ");
- |>> You can't. Sorry.
- |>
- |>Any Standard C compiler will do this. The problem is that VAX C isn't ANSI.
- |>
- |>Shame on DEC for this. Two days from today (ie. 14 Dec 92) will mark the
- |>third
- |>anniversary of the ANSI approval of the Standard. How much longer will DEC
- |>take!?
- |>
- |>You could buy a third party Standard C compiler for your VMS machine. Here's
- |>a reference to the only one I know about:
- |>
- |>* TauMetric, ANSI C for VMS, La Mesa, CA, Sue Lindsey (Sales) 619.697.7674
-
- DEC C for alpha claims to be standard ANSI. It is also to be avaliable for VAX
- at some point by the looks...
-
- In the meantime the hack :-
-
- printf ("%s%S", "one", "two");
-
- works provided "one" and two are not intended to contain "%" stuff.
-
- Three years for implementation of ANSI standards ain't that bad. When do you
- think the FORTRAN 90 compilers will be out?
-
- ANSI C is a plot to make everyone buy another copy of K&R.
-
- --
-
- Phill Hallam-Baker
-