explicitly populate holes created in vectors

This commit is contained in:
Vern Paxson 2021-02-27 10:54:11 -08:00
parent 2f47cce8a6
commit 6aab151d97
4 changed files with 106 additions and 5 deletions

View file

@ -43,6 +43,9 @@ union ZVal {
// Construct from a given higher-level script value with a given type.
ZVal(ValPtr v, const TypePtr& t);
// Construct an empty value compatible with the given type.
ZVal(const TypePtr& t);
// Convert to a higher-level script value. The caller needs to
// ensure that they're providing the correct type.
ValPtr ToVal(const TypePtr& t) const;