[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Strong tables in Lua 5.4
- From: Sean Conner <sean@...>
- Date: Tue, 27 Mar 2018 03:18:08 -0400
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
- References:
- Strong tables in Lua 5.4, Dirk Laurie
- Re: Strong tables in Lua 5.4, Philipp Janda
- Re: Strong tables in Lua 5.4, Hisham
- Re: Strong tables in Lua 5.4, Roberto Ierusalimschy
- Re: Strong tables in Lua 5.4, Egor Skriptunoff
- Re: Strong tables in Lua 5.4, Roberto Ierusalimschy
- Re: Strong tables in Lua 5.4, Hisham
- Re: Strong tables in Lua 5.4, Italo Maia
- Re: Strong tables in Lua 5.4, Eric Man
- Re: Strong tables in Lua 5.4, Dirk Laurie