Is it possible to load a languages PMCs and create the .PMCtype
constants without using the .HLL pragma?
.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.