﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2502	COW optimization incorrect	Tasiro	Jon	"{{{
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."	Bug	closed	3.3.13.15	AutoIt	3.3.9.21	None	Fixed		
