Replaced ValueKind with TableKind in Table. This properly represents the range of type a Table may contain. I've minimised the amount of breakage by still accepting ValueKind in the constructor (marked with an Obsolete attribute, to steer peope towards the new constructor).
This is a small improvement (it provides a hint at valid table types) but it is still a bit fragile. It's very easy to use an incorrect Kind or to pass an incorrect type into SetElement. We may want to improve on that in the future (e.g. type safe table wrappers, like we have for globals).
Replaced
ValueKind
withTableKind
inTable
. This properly represents the range of type aTable
may contain. I've minimised the amount of breakage by still acceptingValueKind
in the constructor (marked with anObsolete
attribute, to steer peope towards the new constructor).This is a small improvement (it provides a hint at valid table types) but it is still a bit fragile. It's very easy to use an incorrect
Kind
or to pass an incorrect type intoSetElement
. We may want to improve on that in the future (e.g. type safe table wrappers, like we have for globals).