make

function make(name:String) -> Object?

Make an object.

  • name: Name of the class.

Return: an optional with a value of the object if the make is successful, or with no value otherwise.

This is used to construct an object where the class is given in a string, e.g. from user input. The class must not have constructor parameters. Internally, it uses dlsym() to search the current process for a symbol make_name_ with C linkage, as generated by the Birch compiler for all compatible types.