February 28, 2008

Comments

Smart "conditional compilation" commenting tip for C++ style languages:


foo();
/*
bar();
baz.foo = 200;
return{
dolly:clone()
}
// */

The trick is the // before the closing */. With this you can just add another slash before the opening one and uncomment the block this way.

foo();
//*
bar();
baz.foo = 200;
return{
dolly:clone()
}
// */

Posted by Claus at February 28, 2008 11:01 AM
Comments
Post a comment