With Leo's recent fixes to <compile>, the following now works:

.sub main @MAIN

 load_bytecode "languages/tcl/lib/tcllib.pbc"

 .local pmc tcl_compiler,compiled_sub

 tcl_compiler = compreg "TCL"

 compiled_sub = compile tcl_compiler, "puts {ok 1}"
 compiled_sub()
.end

Additionally, at Leo's suggestion, I've just removed quite a bit of duplicated 
code from languages/tcl/classes/ - now that multiple inheritance is working, we 
can simply inherit these methods. There are some methods that are still there 
that I don't think are tcl-specific - if anyone can do more cleanup here (esp. 
in tcllist.pmc), I'd appreciate it.

I currently have one failing test (cmd_continue, test 2) - this is, I think, 
the same test that leo had been reporting as failing for a while. I have some 
other pending code which seems to be tickling this GC bug. Hopefully I'll be 
able to track this down.

Reply via email to