User forums > General (but related to Code::Blocks)
Comment block
(1/1)
abraker95:
Upon writing my code I accidentally did this while commenting out the code: //(*pointer)=4 which effectively commented out the code as this would /**
I am aware of the other 2 types of comments, but this one is a new discovery. I tried closing it like so: *)// but is didn't work. Additionally, the code compiles while it is commented out like that, meaning it ignores that it is a comment block. I found this weird and interesting, can somebody tell me more about it?
Jenna:
Can you post the exact code (copy&paste) that does not work in code-tags please (the #-sign in the forum's editor) ?
Alpha:
Rev. 8997 already deals with this, try a nightly.
(The cause is //(* is used by wxSmith to indicate auto-generated code that should not be modified by the user. The corresponding end tag is //*) I believe.)
Navigation
[0] Message Index
Go to full version