lib/abilities |
|
COMPARABLE | All classes handling COMPARABLE objects with a total order relation should inherit from this class. |
DISPOSABLE | All classes whoses instances need a special treatment before they are disposed of by the garbage collector should inherit from this class and effect `dispose'. |
HASHABLE | Ancestor class for all hashable objects. For example, the `hash_code' is needed for DICTIONARY and for SET. Thus, most standard objects are HASHABLE (STRING, DOUBLE, REAL, INTEGER_8, INTEGER_16, INTEGER_32, INTEGER_64, POINTER, NUMBER, MUTABLE_BIG_INTEGER, etc.). |
Provides "abilities". Those classes are best used via inheritance. They give extra functionality to a class.
The currently available abilities are:
COMPARABLE
for objects that can be compared between themselves;HASHABLE
for objects that provide a hash-code (e.g. useful for hashed dictionaries and sets)