Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Expressions > Primaries > Delete expression

Delete expression

Delete expression is taken as an identifier, possibly followed by attribute or subscription accessors, and deletes the referred entity, which is typically attribute or subscription in an object, although the behaviour is dependent on a class of an object. Some things cannot be removed at all, such as any of the variable types.

This operation might invoke class callbacks ``_delete(index)´´, ``_dispose(name)´´ or ``_dispose_<name>´´.

  delete-expr := "delete" identifier  
  delete-expr := "delete" "(" identifier ")" 
See also  | Primaries  | Grammar
Contributes notes:
Add a note
What's new | Anvil