[a118] OnError Example #2

Share your ideas as to how the documentation can be improved.
SAbboushi
Posts: 233
Joined: 08 Dec 2014, 22:13

[a118] OnError Example #2

Post by SAbboushi » 20 Jul 2020, 15:46

ExAccumulator

Code: Select all

WinMove 0, 0, width, height, "non-existent window"
Uninitialized width and height cause "unassigned" warnings (which is not the point of the example).
Suggest

Code: Select all

WinMove 0, 0, width := 0, height := 0, "non-existent window"
User avatar
Ragnar
Posts: 367
Joined: 30 Sep 2013, 15:25

Re: [a118] OnError Example #2

Post by Ragnar » 21 Jul 2020, 07:13

If the UseUnset warning is converted to an error, this would theoretically be correct again, but in this case it doesn't hurt to change it anyway, as the focus is more on "non-existent window". Changed via PR #443.
Post Reply

Return to “Suggestions on documentation improvements”