The statements and functions an ordinary program cannot compile, and what the compiler says when it tries.
Nothing on this page is available to an application: every name here needs a
program compiled with $internal, which is reserved to SD's own setup steps.
They are listed because they exist, because they appear in SD's own source, and
because the errors they produce name something other than the real cause.
Italics mark something you supply, bold a word typed as it stands, and
braces an optional part.
This page and the SD Basic - Syntax card partition the roster: every name
the compiler accepts is on exactly one of them.
a statement in BCOMP's restricted.statements. An ordinary account gets "Unrecognized statement", which at least names the right line
(internal)
a function in BCOMP's int.intrinsics. The message names something else entirely: an unknown function is read as a matrix reference, so the complaint is "Matrix X is not referenced in a DIM statement" — reported at the last line of the program, nowhere near the call. With three or more arguments it is "Right bracket not found where expected" instead, because a matrix takes at most two subscripts
(no such thing)
in a table with no opcode behind it. It compiles for nobody — $internal does not help
THE SECOND ROW IS THE ONE TO REMEMBER. If a function you are certain
exists produces a complaint about a dim statement you never wrote, it does
exist, and this account may not call it.
$internal needs both halves.BCOMP tests
kernel(K$INTERNAL, -1) and kernel(K$ADMINISTRATOR, -1) — internal mode alone
is not enough, because internal programs are the
only ones that may set the administrator flag, and sd-solo -internal is not itself
gated, so any account could otherwise compile a three-line program that grants
itself administrator rights.
ospath(a, b)(internal). Any program may call the openQM form, with openQM's key numbers, behind the account's os switch; the internal form keeps its own numbers. See SD Basic - Status and the Machine
Operating System Access in the Getting Started set covers the sh
verb and the sh and os switches that keep it, os.execute and the files
outside the account behind a door the administrator opens. Encryption and the SDEXT interface, in the same set, explains why
sdext is on this page and what it costs an application.
The User set's SD Basic - Syntax card carries everything an application may
use, and the two partition the roster between them.