Created
March 30, 2012 11:09
-
-
Save wvdschel/2250827 to your computer and use it in GitHub Desktop.
Trigraph trickery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Always change a */ | |
// Do we need to change a??/ | |
if(aChanged) | |
foo->a = a; | |
/* Never change a */ | |
// Do we need to change a??/ | |
if(aChanged) foo->a = a; |
This is why trigraphs should no longer be allowed and the compiler should warn against them. I'm OK with single line comments using //.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is why // should not be used :-)