Function xsGet

Get a property or item of an instance.

xs.bindings.xsSlotRecord xsGet (
  scope xs.bindings.xsMachineRecord* the,
  const(xs.bindings.xsSlotRecord) this_,
  int id
);

Parameters

NameDescription
theA machine
this_A reference to the instance that has the property or item
idThe identifier of the property or item to get

Returns

A slot containing what is contained in the property or item, or xsUndefined if the property or item is not defined by the instance or its prototypes

Examples

In ECMAScript:

foo
this.foo
this[0]

In D:

xsGet(xsGlobal, xsID_foo);
xsGet(xsThis, xsID_foo);
xsGet(xsThis, 0);