-
Notifications
You must be signed in to change notification settings - Fork 0
Nan Adapter Datatypes
Leon Matthes edited this page Dec 19, 2018
·
3 revisions
The list of available datatypes can be queried by calling:
Interpreter.datatypes();
Example return value:
[ { name: 'Boolean', casts: { Double: 8 } },
{ name: 'Double', casts: { Boolean: 9 } } ]
This will return an array of objects. Each of these objects has a name
attribute and a casts
attribute.
A datatype name must always be one of the names returned by this function.
The casts
attribute is an Object which contains an attribute for any datatype the current datatype can be cast to.
The attributes value is the primitive function ID of the function used to cast between the two datatypes.