Method ::`->=()
- Method
`->=
mixed`->=(stringindex,mixedvalue,object|voidcontext,int|voidaccess)- Description
Builtin atomic arrow get and set operator.
- Parameter
index Symbol in
contextto change the value of.- Parameter
value The new value.
- Parameter
context Context in the current object to start the search from. If
UNDEFINEDor left out,this_program::thiswill be used (ie start at the current context and ignore any overloaded symbols).- Parameter
access Access permission override. One of the following:
0See only public symbols.
UNDEFINED1See protected symbols as well.
This function indexes the current object with the string
index, and sets it tovalue. This is useful when the arrow set operator has been overloaded.- Returns
Returns the previous value at index
indexof the current object.- See also