﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2360	implement optional byref parameter passing to function	JoeCool		"
Currently passing optional parameters is by value only...

I will love to have optional byref parameter passing


With the current syntax there is some problems tho 

ex.  the last parameter could be byref and optional

func blah( $x, byref $a, byref $b = 0)
...
endfunc

Passing no value is not more difficult than before, I guess ...
Passing something byref is just passing a pointer(of some sort on the stack)....
(we need to deal with initiazation to something not 0)


Better solution maybe will be to have a optional specifier ...

func blah( $x, byref $a, opt byref $b , opt $c = 22 )
...
endfunc

because initializing byref var (a pointer) to something can be dangerous ...
func blah( $x, byref $a, byref $b = 0x6666)
;not good
endfunc


what do you thing .... it can be pretty useful I think
"	Feature Request	closed		AutoIt		None	Rejected		
