From mboxrd@z Thu Jan 1 00:00:00 1970 From: imp@bsdimp.com (Warner Losh) Date: Wed, 8 Feb 2017 21:38:52 -0700 Subject: [TUHS] // comment in C++ In-Reply-To: References: <20170209021136.9BDEA40B9@lod.com> Message-ID: On Wed, Feb 8, 2017 at 7:46 PM, Dave Horsfall wrote: > On Wed, 8 Feb 2017, Corey Lindsly wrote: > >> > I'm quite taken by BIND, though, which accepts >> > >> > /* this */ >> > // this >> > # and this. >> >> Not that. >> >> ; But this. > > Perhaps I meant named.conf (part of BIND): > > named.conf is the configuration file for named. Statements are enclosed > in braces and terminated with a semi-colon. Clauses in the statements > are also semi-colon terminated. The usual comment styles are supported: > > C style: /* */ > > C++ style: // to end of line > > Unix style: # to end of line > > Where did you get > > ; But this? Old School assembler comments. This found its way into a number of config files long after most uses of Old School assembler had moved on... Macro-16 is where I first encountered it, but it is much older. It is common in DEC syntax, and some others. Warner