.HLL mucks with namespaces, which I don't want to (am not prepared
to) deal with at the moment in APL. I do, however, want to
dynamically load a library containing a PMC for APL to use.
Here's the best I can do without .HLL:
.sub main
$P1 = loadlib 'tcl_group'
unless $P1 goto urk
$I1 = find_type 'TclList'
$P1 = new $I1
$S1 = typeof $P1
say $S1
end
urk:
say "failure to load lib"
.end
(Yes, I said APL earlier, but I haven't committed any of the APL PMCs
at the time of this msg)
Basically, I'd like it if there was something as sugary as .HLL that
didn't have all the namespace side effects.
Try :immediate.
.sub _immediate :immediate
$P1 = loadlib 'tcl_group'
.end
.sub main :main
$P1 = new .TclList
...
.end
Depending on how it's being used, it may also be necessary
to have the loadlib performed as part of a :load sub
(e.g., to have the library loaded when a .pbc is loaded via
load_bytecode).
Pm