Exit and ExitApp - are they control flow statements?

Discuss Autohotkey related topics here. Not a place to share code.
Forum rules
Discuss Autohotkey related topics here. Not a place to share code.
john_c
Posts: 312
Joined: 05 May 2017, 13:19

Exit and ExitApp - are they control flow statements?

29 Sep 2019, 12:05

Does anybody know for what reason Exit and ExitApp aren't mentioned in the control flow section in the docs?

The section is currently consists of If, Else, GoTo, GoSub, Return, Loop, While, For, Break, Continue, Until, Switch, Try, Catch, Finally, and Throw.

There is also "Not Control Flow" section, but Exit and ExitApp aren't mentioned there as well.
Last edited by john_c on 30 Sep 2019, 02:50, edited 1 time in total.
User avatar
jeeswg
Posts: 6823
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Exit and ExitApp - are they control flow statements?

29 Sep 2019, 12:24

Did you ask something like this before somewhere?

Exit and ExitApp are commands in AHK v1, and functions in AHK v2.

Alphabetical Function Index | AutoHotkey v2
https://lexikos.github.io/v2/docs/commands/index.htm

Admittedly, they do have a control flow statement-like role.
Although one wonders how far one can extend the list of CFS-like commands etc in AHK, perhaps Reload, perhaps Pause/Suspend, perhaps Critical/Thread ...?
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
john_c
Posts: 312
Joined: 05 May 2017, 13:19

Re: Exit and ExitApp - are they control flow statements?

29 Sep 2019, 12:35

@jeeswg

> Although one wonders how far one can extend the list of CFS-like commands etc in AHK, perhaps Reload, perhaps Pause/Suspend, perhaps Critical/Thread ...?

Hah, it seems the things are more complicated than I assumed.

> Did you ask something like this before somewhere?

Yes: https://github.com/Lexikos/AutoHotkey_L-Docs/issues/384
User avatar
jeeswg
Posts: 6823
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Exit and ExitApp - are they control flow statements?

29 Sep 2019, 14:03

I maintain a list here:
list of every command/function/variable from across all versions - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=74&t=27321&p=131642#p131642

Although I'm uncertain re. whether Case and Default should be considered control flow statements, I've asked here:
Suggestions on documentation improvements - Page 31 - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=13&t=1434&p=294300#p294300
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests