Re: Comment /* */ generates errors

Posted by Kirill Orlov on
URL: http://spssx-discussion.165.s1.nabble.com/Comment-generates-errors-tp5740837p5740843.html

To my mind, typical scenarios of in-line commenting are

compute x= 1. /*comment
execute.

compute x= /*comment*/ 1.
execute.

compute x= /*comment
  1.
execute.

No period should go after the /* */ (which is actually needed only when comment is within a line of command).

In the beginning of a line, we usually use:
*comment.
compute x= 1.

However, practice shows that inside a macro body /* is more reliable than * even in the beginning of a line:
/*comment.
compute x= 1.