ScriptObject.this

Constructs a new ScriptObject that can be stored inside ScriptValue.

  1. this(string typename, ScriptObject proto, Object native)
    class ScriptObject
    this
    (
    in string typename
    ,,
    Object native = null
    )
  2. this(string typename)

Parameters

typename string

This does not have to be set to a meaningful value but constructors (calling script functions with the new keyword) set this value to the name of the function.

proto ScriptObject

The object's __proto__ property. If a value is not found inside the current object's table, a chain of prototypes is searched until reaching a null prototype. If this parameter is null, the value is set to Object.prototype

native Object

A ScriptObject can contain a native D object that can be accessed later. This is used for binding D classes.

Meta