H (Hybrid) Language - v0.03, by Dr. Herong Yang
Load Program Package Multiple Times
This section describes how to load the same H program package file multiple times.
You can load the same H program package multiple times as shown in the example below:
$load c $from "circle.h"; $load c $from "circle.h"; $load c1 $from "circle.h"; $load c2 $from "circle.h"; # the circle.h program are executed 4 times. # 4 packages are created. # but only 3 are accessible: c, c1, c2. write(c.pi); write(c1.area(2.0)); write(c2.circumference(2.0));
Table of Contents
►Load Program Package Multiple Times
Load Program Package in Functions
Inheritance - Object Attachments