Method set_weak_flag()
- Method
set_weak_flag
array|mapping|multisetset_weak_flag(array|mapping|multisetm,intstate)- Description
Set the value
mto use weak or normal references in its indices and/or values (whatever is applicable).stateis a bitfield built by using|between the following flags:Pike.WEAK_INDICESUse weak references for indices. Only applicable for multisets and mappings.
Pike.WEAK_VALUESUse weak references for values. Only applicable for arrays and mappings.
Pike.WEAKShorthand for
Pike.WEAK_INDICES|Pike.WEAK_VALUES.If a flag is absent, the corresponding field will use normal references.
statecan also be1as a compatibility measure; it's treated like Pike.WEAK.- Returns
mwill be returned.