Custom Query (3922 matches)
Results (364 - 366 of 3922)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #3902 | Fixed | Au3Check, Byref, Map.element | ||
| Description |
; Error: ; - Function with ByRef defined BEFORE usage ; - .element syntax used ;~ #cs Global $Map[] Func AddOne(ByRef $a) $a += 1 EndFunc $Map.something = 123 ConsoleWrite($Map.something & @CRLF) AddOne($Map.something) ConsoleWrite($Map.something & @CRLF) ;~ #ce ; Error Solution 01: ; - Function with ByRef defined AFTER usage ; - .element syntax used #cs Global $Map[] $Map.something = 123 ConsoleWrite($Map.something & @CRLF) AddOne($Map.something) ConsoleWrite($Map.something & @CRLF) Func AddOne(ByRef $a) $a += 1 EndFunc #ce ; Error Solution 02: ; - Function with ByRef defined BEFORE usage ; - ['element'] syntax used #cs Global $Map[] Func AddOne(ByRef $a) $a += 1 EndFunc $Map.something = 123 ConsoleWrite($Map.something & @CRLF) AddOne($Map['something']) ConsoleWrite($Map.something & @CRLF) #ce The shown code will result in a "AddOne() called with Const or expression on ByRef-param(s)" error. The two other arrangements of the same code will not result in this error, and if you disable Au3Check entirely, the code will run fine. So its an Au3Check-only problem, AutoIt itself is fine with it. |
|||
| #1903 | Rejected | Au3Check, Globals, #OnAutoItStartRegister | ||
| Description |
Well, might as well drop this one in. (personal request of course) Would be nice if Au3Check would take note of global vars that are defined inside #OnAutoItStartRegister registered functions. Plenty of workarounds available of course, but they all (those that I know of) kinda suck.
Roger that. lol |
|||
| #1838 | Fixed | Au3Check, Ignored error case, keyword and (attached) negative number. | ||
| Description |
Au3Check, Ignored error case, keyword and (attached) negative number.
(works for me) (documenting) |
|||
