Opened 10 years ago

Closed 9 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:


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)

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 )

because initializing byref var (a pointer) to something can be dangerous ...
func blah( $x, byref $a, byref $b = 0x6666)
;not good

what do you thing .... it can be pretty useful I think

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

comment:2 Changed 9 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.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.