On Sun, May 14, 2006 at 04:17:31PM -0400, Will Coleda wrote:
> Is it possible to load a languages PMCs and create the .PMCtype  
> constants without using the .HLL pragma?

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

Reply via email to