Opened 11 years ago
Closed 10 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 Changed 11 years ago by TicketCleanup
- Version 3.3.8.1 deleted
comment:2 Changed 10 years ago by Jon
- Resolution set to Rejected
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Automatic ticket cleanup.