H (Hybrid) Language
∟Source Code Packages
∟Load H Program Package File
This section describes how to load an H program package file.
You can use the $load statement to load and execute an H program package
with the following syntax:
$load package_name $from "package file location";
When the $load statement is executed, the H system will:
- Fetch the H package from the given location.
It may return the PackageNotFound error.
- Execute all statements in H package immediately.
- Make all variables and functions from the H package available
under the package name prefix.
Example of loading and using an H package:
$load c $from "circle.h";
write(c.pi); # accessing a variable in package
write(c.area(2.0)); # accessing a function in package
write(c.circumference(2.0));
Table of Contents
About This Book
Introduction of H Language
Syntax
Data Types
Variables
Expressions
Statements
"boolean" Data Type
"integer" Data Type
"string" Data Type
"real" Data Type
"array" Data Type
►Source Code Packages
What Is Function
Create H Program Package File
►Load H Program Package File
Load Program Package Multiple Times
Load Program Package in Functions
Load Program Package Remotely
Expose H Program Package File
Classes and Objects
Object Oriented Programming
Inheritance - Object Attachments
Encapsulation - Private Members
References
Full Version in PDF/ePUB