save_new_typeof | Precisamento

save_new_typeof

Home
functions
constants
json
examples

Creates a new instance of the type stored in the first argument, and returns it’s id.

Syntax

1
save_new_typeof(argument_count)
Argument Type Description
argument_count double The number of loaded arguments used to construct the instance.

Returns: Instance Id

Description

This function will create a new object of the type specified by the first argument. First, load the type to create, then load the arguments that will be passed to the constructor, then call this function. It will grab the arguments and use their types to determine which contructor to call. Finally, this returns an id that can be used to reference the instance in further operations.