All Data Are Structured Objects

This section describes H language data - structured objects.

All data are structured objects.

This allows developers to use all data in a consistent way. And structured objects can provided additional properties and methods. For example,

one = 1; 
write(one.type); # integer 1 is stored in a structured object

string = "Hello!";
string.reverse(); # string "Hello!" is stored in a structured object
write(string);

Design options:

1. All data are structured objects.

2. Data are divided into two categories: primitive data and structured object data.

Last update: 2017.

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

 PDF Printing Version