Custom Query (3922 matches)
Results (373 - 375 of 3922)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #2502 | Fixed | COW optimization incorrect | ||
| Description |
Local $arr1 [1] = [1] rest ($arr1 [0]) ; create a reference Func rest (ByRef $element) ; with a complicated syntax Local $arr2 = $arr1 ; copy the array MsgBox (0, "", $arr1 [0] & @CRLF & $arr2 [0]) ; 1 / 1 $element = 10 ; modify the value in $arr1 MsgBox (0, "", $arr1 [0] & @CRLF & $arr2 [0]) ; 10 / 10 ; > "What? But I copied my array $arr1 after the modification..." ; Poor programmer... EndFunc Too bad there are references. See http://www.gotw.ca/gotw/044.htm. |
|||
| #2512 | Fixed | ObjName crash | ||
| Description |
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1") $oHTTP.Open("GET", "http://www.autoitscript.com/forum/", False) $oHTTP.Send() $vRet = $oHTTP.ResponseStream() ObjName($vRet) ;<-- HERE CRASH |
|||
| #2518 | Fixed | Static evaluates incorrect | ||
| Description |
Func _Test()
Return 7
EndFunc
Func _MyFirstFunc()
Local Static $Test = _Test(), $FuncName = 'Dummy One'
ConsoleWrite('FuncName is: ' & $FuncName & @CRLF)
EndFunc
Func _MySecendFunc()
Local Static $Test = _Test(), $FuncName = 'Dummy Two'
ConsoleWrite('FuncName is: ' & $FuncName & @CRLF)
EndFunc
_MyFirstFunc()
_MySecendFunc()
outputs: FuncName is: Dummy One FuncName is: Dummy One properly it would be: FuncName is: Dummy One FuncName is: Dummy Two |
|||
Note:
See TracQuery
for help on using queries.
