Skip to content

function getdefaultdelegate (shared-side)

Available since version: 0.3.0

Note

Both integer and floats share the same delegate.

This function returns a delegate table used for specific builtin squirrel type.
It can be used to add a new functions for squirrel types, e.g: add a string method startswith.

Declaration

table& getdefaultdelegate(string type)

Parameters

  • string type: the type name, possible values are:
    - "number"
    - "string"
    - "array"
    - "table"
    - "class"
    - "instance"
    - "weakref"
    - "function"
    - "generator"
    - "thread"

Returns table&

the delegate table used for specific type.