PE> FM> As Paul said to you "//" is C++ not Borland. And
you could still use
PE> FM> "/*...*/" as a one-line comment, as you to with
"{...}" in Pascal. But
PE> FM> it's the nestability thing which is such a big advantage. I comment my
PE> FM> code a lot, with {}, and it's just so easy while debugging to surround
PE> FM> some bits you don't want to use in that test with (*...*).
PE> In C, you use #if 0, #endif to mask out large blocks of code. BFN. Paul.
FM> OK, that wouldn't be too much trouble and achieve the desired result.
FM> You could {$define test1} {$ifdef test1} ... {$endif} in Pascal too, but
FM> (* ... *) is easier.
Some compilers have extensions that allow nested comments, but it's not
standard. BFN. Paul.
@EOT:
---
* Origin: X (3:711/934.9)
|