{"id":178,"date":"2008-12-08T16:02:24","date_gmt":"2008-12-08T21:02:24","guid":{"rendered":"http:\/\/vgable.com\/blog\/2008\/12\/08\/c-comment-trivia\/"},"modified":"2008-12-08T16:48:51","modified_gmt":"2008-12-08T21:48:51","slug":"c-comment-trivia","status":"publish","type":"post","link":"https:\/\/vgable.com\/blog\/2008\/12\/08\/c-comment-trivia\/","title":{"rendered":"C Comment Trivia"},"content":{"rendered":"<p><code>\/\/I'll bet \\<br \/>\nyou \\<br \/>\ndidn't \\<br \/>\nknow \\<br \/>\nyou \\<br \/>\ncould \\<br \/>\ncomment \\<br \/>\nlike \\<br \/>\nthis \\<br \/>\nin \\<br \/>\nC\/C++\/Objective-C<br \/><\/code><\/p>\n<p>Well, you can.  Finding out was a lot of fun, believe me.<\/p>\n<p>At some point, I&#8217;m not sure when, I unknowingly put a &#8216;\\&#8217; at the end of a block of <code>\/\/<\/code> comments.  That commented out the method-call the block was referring to.  As you might guess from the fact that it had a big comment talking about why it was there, this was an important method call.  I spent more time then I want to admit debugging and staring at my code trying to see the problem.  Finally I noticed &#8220;hey, the color of that code is like a comment, even though it&#8217;s not in a comment&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/vgable.com\/blog\/wp-content\/uploads\/2008\/12\/210f85a6-4665-4f95-93c1-1a78003452a9.jpg\" alt=\"The More You Know!\" border=\"0\" width=\"325\" height=\"214\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/\/I&#8217;ll bet \\ you \\ didn&#8217;t \\ know \\ you \\ could \\ comment \\ like \\ this \\ in \\ C\/C++\/Objective-C Well, you can. Finding out was a lot of fun, believe me. At some point, I&#8217;m not sure when, I unknowingly put a &#8216;\\&#8217; at the end of a block of \/\/ comments. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,7,5,4],"tags":[613,251,134],"class_list":["post-178","post","type-post","status-publish","format-standard","hentry","category-bug-bite","category-c","category-objective-c","category-programming","tag-c","tag-comments","tag-xcode"],"_links":{"self":[{"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/posts\/178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/comments?post=178"}],"version-history":[{"count":0,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/posts\/178\/revisions"}],"wp:attachment":[{"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/media?parent=178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/categories?post=178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/tags?post=178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}