lua-users home
lua-l archive

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


It was thus said that the Great Dirk Laurie once stated:
> 2018-03-27 5:21 GMT+02:00 Eric Man <meric.au@gmail.com>:
> 
> > What was the reason we don't use:
> >
> > setmetatable(t, { __mode = 'strong' })
> 
> It uses too many letters.
> 
> At present 'k' means keys are weak, 'v' means values are weak. Just
> 's' or maybe 'S' (strong feels as it it should be capitalized) would
> be enough.

  So what would this mean?

	setmetatable{t,{ __mode = "vS" })

  -spc