>>Not in C. The closing */ is necessary. > >That's the case in Delphi also, practically speaking. Code >ends with a end. and any (* before that would hide it from the >compiler. > >But I just tested the /* in SQLite, and apparently it comments >eveything to the end of the text block without causing an error. > >So the valid comment forms appear to be: > >-- to end of line >/* to the next */ >/* to the end of the text block > >-- causes a /* before EOL to be ignored > >In looking up SQL comments in general on SQL newsgroups, >I found at least one claim that SQL has no comment mechanism. >I wonder if that's true for the standard. > >In any event, I'm glad to see SQLite has both line and block >comments. > >Nathan
Not suggesting the DLL ought to have a requirement to terminate a /* comment, but I can see the wisdom of having my editor catch that. I spent some time looking for the problem with code I had block-commented with /* words /* instead of /* words */. Maybe longtime C users would spot that right away, but my eyes gloss right over it. NH