Comments block ?

BlitzPlus Forums/BlitzPlus Programming/Comments block ?

Walter(Posted 2004) [#1]
";" is to put one line in comment, which is for a block? (in C++ it's: /* */)


Genexi2(Posted 2004) [#2]
There is none for a block sadly enough, so get used to repeatedly hitting Down-Left-; ...

Some of the 3rd-party IDE's might have their own way of allowing you to select a block of code and comment it off, unsure though.


keyboard(Posted 2004) [#3]
Yeah, Visual Blitz has comment block
CTRL M

v. handy


CS_TBL(Posted 2004) [#4]
avoid repeat "down-left-;" forever .

use this:

goto hell
[ tons of code here that should be ;'d ]
.hell


Rob Farley(Posted 2004) [#5]
if false

do stuff

endif

then to switch it back on again...

if true

do stuff

endif


Lattyware(Posted 2004) [#6]
CS_TBL:
problem is, if you comment alot, that would slow down your code.


DNielsen(Posted 2004) [#7]
Commenting slows down code? That can't be true. Comments are ignored entirely by the actual compile, aren't they??