H (Hybrid) Language - v0.03, by Dr. Herong Yang
All Data Types Are Extensions of "object"
This section describes H language root data type - 'object'.
All data types are extensions of "object" data type.
This allows us to provide some fundamental properties and methods in "object", which are inherited in all data types. For example,
o = object(); o.type; # property holding the data type name of this object o.size; # property holding size in bytes of this object o.string(); # method returns the string representation of this object d = date(); d.type; d.size; d.string();
Table of Contents
All Data Are Structured Objects
All Data Are Created from Classes
Data Literals Are Alias of Object Constructions
Commonly Used Data Types Are Built-in Data Types
►All Data Types Are Extensions of "object"
Inheritance - Object Attachments