libperun

Class std.rt.Object

Synopsis

public abstract class Object

The base class for all other classes in Perun.

Fields

Constructors

Methods

public dword_t hash();

Return a hash of this object. This is an unsigned integer value, which can be used in things like hash maps to sort objects into buckets. The hashing algorithm can change between library versions, and classes may override this to provide better hashing algorithms. Never depend on a specific value for this!

public bool opEquals(Object other);

Compare this object with another object. By default, this returns true if both arguments are references to the same object.

public final Class getDynamicClass();

Return the dynamic class of this object (the one which was actually instantiated to produce it).