H (Hybrid) Language - v0.03, by Dr. Herong Yang
Create H Program Package File
This section describes how to create an H program package file.
An H program package file is text file that contains H program code.
Usually, we create a H program package file with statements and functions that are designed to solve a specific problem.
For example, the following H program package file, circle.h, is created with the following statements and functions:
# circle.h
write("loading package circle.h...");
pi = 3.14159;
$function area(radius): {
return ^.pi*radius**2;
};
$function circumference(radius): {
return ^.pi*radius*2;
}
Table of Contents
►Create H Program Package File
Load Program Package Multiple Times
Load Program Package in Functions
Inheritance - Object Attachments