Allow delete statement for tables, sets and vectors

Relates to #3472. This allow "delete tbl" as an alternative for
clear_table(tbl). Also works for vectors.
This commit is contained in:
Arne Welzel 2024-02-21 17:36:20 +01:00
parent 6d86a48a6a
commit 2f1893bc58
7 changed files with 68 additions and 0 deletions

View file

@ -428,6 +428,9 @@ class NameExpr final : public Expr {
public:
explicit NameExpr(IDPtr id, bool const_init = false);
bool CanDel() const override;
void Delete(Frame* f) override;
ID* Id() const { return id.get(); }
const IDPtr& IdPtr() const;