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

 About This Book

 Introduction of H Language

 Syntax

Data Types

 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"

 Variables

 Expressions

 Statements

 "boolean" Data Type

 "integer" Data Type

 "string" Data Type

 "real" Data Type

 "array" Data Type

 Source Code Packages

 Classes and Objects

 Object Oriented Programming

 Inheritance - Object Attachments

 Encapsulation - Private Members

 References

 Full Version in PDF/ePUB