Article View: comp.std.c
Article #2256Re: comment style
From: Guido van Rossum
Date: Tue, 08 Jan 1991 13:57
Date: Tue, 08 Jan 1991 13:57
17 lines
1043 bytes
1043 bytes
In comp.std.c you write: >[...] When you have end-of-line comments >there's no need for continuation characters. *All* characters are >ignored between // and newline inclusive. Your assumption (which you mention in several of your postings) is that newline is not significant to the C compiler. But it is to the preprocessor because #include etc. must be at the start of a line. The following example does not #include <stdio.h>: /* This line is continued... */ \ #include <stdio.h> -- Guido van Rossum, CWI, Amsterdam <guido@cwi.nl> "Pablo Picasso was never called an asshole"
Technical Details
Message-ID:
<2766@charon.cwi.nl>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!charon!guidoReferences:
<613@caslon.cs.arizona.edu> <1050:Jan701:40:4791@kramden.acf.nyu.edu> <616@caslon.cs.arizona.edu> <17968:Jan804:38:1591@kramden.acf.nyu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!charon!guido From: guido@cwi.nl (Guido van Rossum) Newsgroups: comp.std.c Subject: Re: comment style Message-ID: <2766@charon.cwi.nl> Date: 8 Jan 91 13:57:41 GMT References: <613@caslon.cs.arizona.edu> <1050:Jan701:40:4791@kramden.acf.nyu.edu> <616@caslon.cs.arizona.edu> <17968:Jan804:38:1591@kramden.acf.nyu.edu> Sender: news@cwi.nl Lines: 17