Implement

Implement is a statement that allows you to define useful functions for types, like creating a variable with a type or when the variable goes out of scope.

Syntax:

implement TYPE METHOD

end

Methods

init

The init method is run when a variable with the type is created.

deinit

The deinit method is run when a variable with the type goes out of scope