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
Name | Description |
---|---|
the | A machine |
this_ | A reference to the instance that has the property or item |
key | The 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));