| Create a new object - the C equivalent to the ferite 'new' keyword. |
Warning! |
| The return variable is marked as disposable. If you wish to retain a reference and return the object from a native function you must 'UNMARK_VARIABLE_AS_DISPOSABLE' |
| Declaration: |
| FeriteVariable *ferite_new_object( FeriteScript *script, FeriteClass *nclass, FeriteVariable **plist) |
| Parameters: |
| Parameter #1: FeriteScript *script - The script to create the object within. |
| Parameter #2: FeriteClass *nclass - The class to instantiate an object from |
| Parameter #3: FeriteVariable **plist - The parameters to be passed to the objects constructor. This can be NULL for an empty list. |
| Returns: |
| A variable that references the newly created object. |