patch applied (packages/base): Change C-style comments to Haskell-style.

Isaac Dupree isaacdupree at charter.net
Tue Jun 26 11:59:18 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Malcolm Wallace wrote:
> Isaac Dupree <isaacdupree at charter.net> wrote:
> 
>> Well (in C preprocessor), technically between #if 0 / #endif you are
>> still supposed to have only complete tokens - e.g, no unmatched ' or ".
> 
> Ah, yes I'd forgotten that incomplete C tokens in a Haskell comment
> might break cpp.  The combination eol comment -- // should avoid that
> possibility.

Okay, for a heavyweight solution...

#if 0
/*
blah blah
*/
#endif

or even

#if 0
/* {-
blah blah
- -} */
#endif


#if 0
- -- // blah blah
#endif
is also okay (if we are okay with requiring the cpp to recognize "//" as
a comment)

hmm... this is not so nice... are there cpp's actually used for Haskell
for which #if 0/#endif can't comment non--(C)-tokens? (or might there be
in the future?)

Isaac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGgTfVHgcxvIWYTTURAiEiAJ4+qI83ewkeJ+PpOXPRVEvc0bEu/gCgprEN
nSugmznf4nTIka1En8dc/8Y=
=UObo
-----END PGP SIGNATURE-----


More information about the Cvs-libraries mailing list