Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Multi-Line Comments


  • Please log in to reply
1 reply to this topic
MG
  • Members
  • 5 posts
  • Last active: Aug 08 2005 09:47 AM
  • Joined: 20 Jul 2005
I was putting a multi-line comment at the top of a script like this:

/* Function:
aldfjaldj
adfjalfkj
adkfjalfj */

To my surprise the script seemed to terminate directly upon calling. After looking through the help-file I found out, that /* and */ have to be at the beginning of a line.

In order to be more conform with other programming languages and thus with the habits people have aquirred by using them, maybe you could remove the restriction for the closing */.

Kind regards,

MG

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004

In order to be more conform with other programming languages ... maybe you could remove the restriction for the closing */

The restriction cannot be removed without breaking existing scripts. This is because it would introduce ambiguity such as this example:

/*
MsgBox, The closing comment symbol is */
*/

The above intends that the */ be shown by the MsgBox rather than be an end-of-comment symbol.