Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: abraker95 on October 03, 2013, 11:35:01 pm

Title: Comment block
Post by: abraker95 on October 03, 2013, 11:35:01 pm
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?
Title: Re: Comment block
Post by: Jenna on October 04, 2013, 12:11:50 am
Can you post the exact code (copy&paste) that does not work in code-tags please (the #-sign in the forum's editor) ?
Title: Re: Comment block
Post by: Alpha on October 04, 2013, 01:11:32 am
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.)