Contents
Table of Contents |
---|
...
The provided path may be relative or absolute. If relative, it is resolved relative to the defined 'sil.home' environment variable, usually the 'silprograms' directory.
Variable visibility
There are two categories of variables you can use in the included programs.
...
These are the variables you define in the body of the included program. These can be used throughout the included program, as well as in your SIL program which that included the file.
Code Block | ||
---|---|---|
| ||
function increment(int x) { return x + 1; } number a = increment(0); |
...
Notice the use of variable a in the SIL program even though it was declared in the included file. Also notice the use of the increment() UDR which that was defined in the included file as well.
...