﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3267	ByRef parameter with unnamed temporary variables	binu	Jos	"
{{{
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
;#AutoIt3Wrapper_Run_AU3Check=n
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

main()
Func main()
	$var = ""asdf""
	ExampleOne($var)
	ExampleTwo($var)
	ConsoleWrite("">"" & @CR)

	$var = ""asdf""
	$var = ExampleOne($var)
	ExampleTwo($var)

	ConsoleWrite("">"" & @CR)

	$var = ""asdf""
	ExampleTwo(ExampleOne($var))
EndFunc   ;==>main

Func ExampleOne(ByRef $var)
	ConsoleWrite($var & "" > ExampleOne"" & @CR)
	Return $var & "" > ExampleOne""
EndFunc   ;==>ExampleOne

Func ExampleTwo(ByRef $var)
	ConsoleWrite($var & "" > ExampleTwo"" & @CR)
	Return $var & "" > ExampleTwo""
EndFunc   ;==>ExampleTwo

}}}


From the AutoIt Help:
'''Note that not only a named variable can be passed for a ByRef parameter - unnamed temporary variables, such as function return values, may be passed as ByRef parameters as well.'''"	Bug	closed	3.3.15.1	Au3Check	3.3.14.2	None	Fixed	ByRef, parameter, unnamed temporary, variables	
