Custom Query (3922 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (364 - 366 of 3922)

Ticket Resolution Summary Owner Reporter
#3902 Fixed Au3Check, Byref, Map.element anonymous
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 Jos mvg
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.

Anticipated Valik response: I don't have a problem with it, so not going to happen. Learn to code without Au3Check.

Roger that. lol

#1838 Fixed Au3Check, Ignored error case, keyword and (attached) negative number. Jos mvg
Description

Au3Check, Ignored error case, keyword and (attached) negative number.

  • Seems very similar to ticket #491
  • compressed(wrongly) code exception.
    For $i=-1 To-2 Step -1
    Next
    For $i=-1 To -2 Step-1
    Next
    

(works for me) (documenting)

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.