TIP: Click on subject to list as thread! ANSI
echo: locsysop
to: Frank Malcolm
from: Paul Edwards
date: 1997-01-11 18:58:24
subject: OS/2 4.0

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)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.