Martin Bähr wrote:
could you please explain what a weak value is? my cmod coding skills are not strong enough ;-)
greetings, martin.
hasn't any to do with cmod's :) It's about the garbage collector. It lets you keep values in a table (array, mapping or multiset, see: http://pike.ida.liu.se/generated/manual/modref/ex/predef_3A_3A/set_weak_flag... ) without adding the extra reference, so when there is no one else referencing the item, it gets flagged as garbage, and will be destructed. Quite handy ;o) works for both keys and/or values. There's probably more info available on the net if you search on weak values, it's not a unique property of pike ;o)
//K