mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Delete operator for record fields.
"delete x$y" now resets record field "x" back to its original state if it is either &optional or has a &default. "delete" may not be used with non-optional/default fields.
This commit is contained in:
parent
964060c32f
commit
46b1fd9850
9 changed files with 70 additions and 18 deletions
|
@ -688,8 +688,11 @@ public:
|
|||
|
||||
int Field() const { return field; }
|
||||
|
||||
int CanDel() const;
|
||||
|
||||
Expr* Simplify(SimplifyType simp_type);
|
||||
void Assign(Frame* f, Val* v, Opcode op = OP_ASSIGN);
|
||||
void Delete(Frame* f);
|
||||
|
||||
Expr* MakeLvalue();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue