🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2484

Re: translation phases

#2484
From: Garry Wiegand
Date: Mon, 25 Feb 1991 23:54
33 lines
1451 bytes
bhoughto@pima.intel.com (Blair P. Houghton) writes:
>Line splicing (the deletion of the sequence {backslash,newline}
>from the translation unit; thus reducing the unit's "length" by
>two characters) occurs before anything else other than trigraph
>replacement and translation of funny newline markers into
>real newline characters.  Strings don't even exist at this
>point; just lots of characters, a few of them to be deleted.

Was this a late addition to the standard? I tried:

    \
    \
    \
    z() {}

on all the compilers I could get to quickly. DEC (Ultrix and VMS),
HP, SG, Sun, and the Sony all complained. Gcc passed it. (Gcc is
also the only one that so far is brave enough to define __STDC__.)

I changed this to:

    z\
    z\
    z\
    z() {}

which made the VMS compiler smile upon it (making a global symbol
named ZZZZ - I checked :-) and didn't change the others. 

Interesting. Not useful, but interesting.

Garry Wiegand    ---    Ithaca Software, Alameda, California
...!uunet!ithaca!garry, garry%ithaca.uucp@uunet.uu.net
Technical Details
Message-ID: <1991Feb25.235440.18548@ithaca.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!olivea!uunet!ithaca!garry

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!olivea!uunet!ithaca!garry
From: garry@ithaca.uucp (Garry Wiegand)
Newsgroups: comp.std.c
Subject: Re: translation phases
Message-ID: <1991Feb25.235440.18548@ithaca.uucp>
Date: 25 Feb 91 23:54:40 GMT
Organization: Ithaca Software
Lines: 33