Opened 13 years ago
Closed 12 years ago
#2360 closed Feature Request (Rejected)
implement optional byref parameter passing to function
| Reported by: | JoeCool | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | None | |
| Keywords: | Cc: |
Description
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
Attachments (0)
Change History (2)
comment:1 by , 13 years ago
| Version: | 3.3.8.1 |
|---|
comment:2 by , 12 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |

Automatic ticket cleanup.