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 in turn needs an administrator in the
SDSYS account. 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.
This document is separate so that it can be withheld. It links to nothing
outside the administrator set. Where a page in another set is worth naming,
it is named in words.
Italics mark something you supply, bold a word typed as it stands, and
braces an optional part.
This page and the User set's 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 safe: internal programs are the
only ones that may set the administrator flag, and sd -internal is not itself
gated, so any account could have compiled a three-line program that granted
itself administrator rights. That was demonstrated, not theorised.
ospath(a, b)(internal). Any program may call the openQM form, with openQM's key numbers, behind the account's OS access; the internal form keeps its own numbers. See SD Basic - Status and the Machine