>>  see whether
>> a /* comments to the end of text without a */ being syntactically
>> necessary.
>
>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 

Reply via email to