1  package frost.core
 2  
 3  ====================================================================================================
 4  The root of the Frost class heirarchy. Every class in Frost ultimately descends from `Object`.
 5  ====================================================================================================
 6  @abstract
 7  class Object {
 8      @private
 9      var $class:Class
10  
11      @private
12      var refCount:Int32
13  
14      @private
15      var $flags:UInt8
16  
17      ================================================================================================
18      Returns a `String` representation of this object. The default implementation returns
19      `"<Class Name>"`, but many classes override this to provide a more useful description of the
20      object.
21      ================================================================================================
22      property toString:String
23  
24      @extendable
25      function get_toString():String {
26          return "<\{$class.name}>"
27      }
28  
29      ================================================================================================
30      Called just before the object is destroyed. The default implementation does nothing.
31      ================================================================================================
32      @protected
33      @extendable
34      method cleanup() {
35      }
36  }