Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: perento on May 17, 2012, 09:28:45 pm

Title: Issue with block comment scopes
Post by: perento on May 17, 2012, 09:28:45 pm
I hope here is the place to post this, if not sorry.

Block comment scopes doesnt work like the normal scopes for example () or {}
If i have,
Code
/* stuff */
but then i add another block of comment that i want the 'stuff' comment to be inside the new one, like this
Code
/* <- start of top scope
...
/* stuff */ // <- top scope ends here
this area remain un-comented */ // <- usualy scopes should end here

The other type of scopes dont work like so?
Title: Re: Issue with block comment scopes
Post by: zabzonk on May 17, 2012, 09:44:34 pm
Neither C nor C++ support nested comments.
Title: Re: Issue with block comment scopes
Post by: perento on May 17, 2012, 09:50:17 pm
Why so, they should be maded like scopes but seems they aren't?
Title: Re: Issue with block comment scopes
Post by: zabzonk on May 17, 2012, 09:56:42 pm
If you want to discuss why the C and C++ languages are the way they are, this is not the place to do it. Try stackoverflow, or comp.lang.c++.
Title: Re: Issue with block comment scopes
Post by: perento on May 17, 2012, 10:09:25 pm
Ok thanks i just thought its from C::B
Title: Re: Issue with block comment scopes
Post by: oBFusCATed on May 17, 2012, 11:34:12 pm
perento: http://wiki.codeblocks.org/index.php?title=FAQ-General#Q:_What_Code::Blocks_is_not.3F
Title: Re: Issue with block comment scopes
Post by: perento on May 18, 2012, 04:06:29 am
Thanks and sorry!
If C++ language gets updates, does those updates will be added in Code::Blocks? Or the IDE just interact with the current state of the language?
Title: Re: Issue with block comment scopes
Post by: oBFusCATed on May 18, 2012, 08:22:50 am
Re-read the link again and click on the compiler and linker links...
Title: Re: Issue with block comment scopes
Post by: perento on May 18, 2012, 08:27:16 pm
I think they will be added, anyway did answer my question. Tnx for reply all.

Great IDE