Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
The use of (* *) and
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Raz0rEdge" data-source="post: 1538337" data-attributes="member: 110816"><p>Ahh..context, such a wonderful thing..<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Yes, the "--" is for single line comments that will end with the newline. the (* and *) convention can be used for multi-line comments..</p><p></p><p>See <a href="http://alvinalexander.com/blog/post/mac-os-x/applescript-use-comments" target="_blank">here</a> for how that works..</p><p></p><p>Other languages use other conventions, but the theory is the same..</p><p></p><p>C++ uses "//" for a single line comment and uses C-style /* and */ for multi-line comments. A lot of scripting languages use # for a single line comment and don't support multi-line comments, so every line has to be prefixed with # and so on..</p></blockquote><p></p>
[QUOTE="Raz0rEdge, post: 1538337, member: 110816"] Ahh..context, such a wonderful thing..:) Yes, the "--" is for single line comments that will end with the newline. the (* and *) convention can be used for multi-line comments.. See [URL="http://alvinalexander.com/blog/post/mac-os-x/applescript-use-comments"]here[/URL] for how that works.. Other languages use other conventions, but the theory is the same.. C++ uses "//" for a single line comment and uses C-style /* and */ for multi-line comments. A lot of scripting languages use # for a single line comment and don't support multi-line comments, so every line has to be prefixed with # and so on.. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
The use of (* *) and
Top