Function xsDeleteAt

Delete a property or item of an instance by key.

void xsDeleteAt (
  scope xs.bindings.xsMachineRecord* the,
  const(xs.bindings.xsSlotRecord) this_,
  const(xs.bindings.xsSlotRecord) key
);

If the property or item is not defined by the instance, this macro has no effect.

Parameters

NameDescription
theA machine
this_A reference to the instance that has the property or item
keyThe key of the property or item to delete

Examples

In ECMAScript:

delete this.foo
delete this[0]

In D:

the.xsDeleteAt(xsThis, xsID_foo);
the.xsDeleteAt(xsThis, xsInteger(0));