lua-users home
lua-l archive

Re: iscleared problem in lgc.c

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


One corollary to this is that if you want to create weak sets of values, you should use:
	set[ value ] = value
to add the value to the set rather than
	set[ value ] = true
That way doing pairs( set ) won't reveal finalized keys.
(I got bitten by this years ago writing the weak observer mechanism in Lightroom.)
Mark

AltStyle によって変換されたページ (->オリジナル) /