Will Coleda <[EMAIL PROTECTED]> wrote: > Going through my todo (hurm, should make TODO) list for Tcl, I'm > wondering:
> - There's a sprintf opcode. Is there a way to do a scanf? No not yet. > - is there an ETA on rx_compile? I hesitate to write my own RE compiler > having already dealt with tcl and tcl's [expr] ^_^ I'd like to know that too. > - Did exception handling ever get fixed? (I had submitted a test case > ages past - Last I saw was Leo saying "patches welcome". It was a COW > bug, IIRC.) The COW bug is fixed. Using exceptions should work. > - Unicode? Needs a lot of work still. > - I was told ages past that I should use "global" for tcl's global > variables to play nice with others... What is the "right" way to store > my interpreter's global state, then? Well just use the global ops. global "tcl_globals" = the_hash # store .. pref = global "tcl_globals" # fetch > PerlHash that maps command names to the builtin functions). I suppose I > could create my own pad, or even an object... but then how do I access > it without storing it in a global? Pads are for lexicals inside subroutines. Using an object or an hash doesn't differ, you have to store it somewhere (or pass it around). Why not just use the global opcodes? leo