Subject: Re: Teaching indent about C++ comments
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-userlevel
Date: 05/03/2006 15:21:07
--2hMgfIw2X+zgXrFs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Wed, May 03, 2006 at 12:14:36AM -0400, der Mouse wrote:
> > [indent(1) vs //-to-nl comments]
>=20
> > Any thoughts?
>=20
> Ummm...sed -e 's@//.*@/* & */@'? Bit of a kludge, but then, what are
> C++ comments doing in supposedly-C code anyway?
As others have noted, they are now valid. :-)
I have also found that they are also occasionally very convenient. :-)
So any thoughts on this?
Take care,
Bill
--2hMgfIw2X+zgXrFs
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
iD8DBQFEWSzTWz+3JHUci9cRAhDrAJ0Q07TYo733B1HG01t6sNEvHJdnJwCffHcA
NyujiawID+Ll0/eTROTe1Fo=
=eYyU
-----END PGP SIGNATURE-----
--2hMgfIw2X+zgXrFs--