H (Hybrid) Language - v0.03, by Dr. Herong Yang
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.
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