AutoHotkey Community

It is currently May 27th, 2012, 11:27 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Multi-Line Comments
PostPosted: August 5th, 2005, 8:30 am 
Offline

Joined: July 20th, 2005, 4:10 pm
Posts: 5
Location: Luxembourg
I was putting a multi-line comment at the top of a script like this:

Code:
/* 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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Multi-Line Comments
PostPosted: August 13th, 2005, 3:35 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
MG wrote:
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group