Kaya 0.4.4 reference for Prelude::onDestroy

List of functions and data types in Prelude

Void onDestroy(var a object, var Void(a) destroyFn)

Arguments

Usage

If additional cleanup is needed when an object is destroyed, this function registers a finalisation procedure. e.g. a record containing a file handle should make sure the file is closed when the object is deallocated.

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya