Explanation needed re /* and */ meaning Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
wddogger
Posts: 9
Joined: 28 Dec 2013, 14:04

Explanation needed re /* and */ meaning

Post by wddogger » 02 Jul 2022, 14:08

What do these character pairs /* ....... */ denote at the top of a script
They appear to define a section of non-executable statements like documentation but I can find no explanation via hours of Google searching. :headwall: Any explanation would be GREATLY appreciated.

Example follows:

Code: Select all

; Comment stmt 1
; Comment stmt 2
; Coment stmt n

/* Some statement [looks like a Function definition as Function(arg1,arg2,arg3,arg4)  ]
text string that appears to explain Function arg1
text string that appears to explain Function arg2
text string that appears to explain Function arg3
text string that appears to explain Function arg4

Example:
Function(0)
Function(1)
Function(2)
Function(3)
*/

1st executable stmt (a function call)
{
	.
	etc
	

BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Explanation needed re /* and */ meaning  Topic is solved

Post by BoBo » 02 Jul 2022, 14:10

https://www.autohotkey.com/docs/Language.htm#comments

And as you can see from the syntax highlighting in the code box above...

; these
; are
; single line comments

/*
this
is
a
comment
block
*/

User avatar
wddogger
Posts: 9
Joined: 28 Dec 2013, 14:04

Re: Explanation needed re /* and */ meaning

Post by wddogger » 02 Jul 2022, 15:54

Thanks, BoBo for confirming my suspicions. :thumbup:

Post Reply

Return to “Ask for Help (v1)”