Re: cvs commit: parrot/languages/tcl/lib/macros boolean.imc

2004-10-15 Thread Leopold Toetsch
William Coleda <[EMAIL PROTECTED]> wrote: > Though I have to wonder how this will work with inter-language-operability. bool = istrue(some_pmc) is exactly that. Your PMC can answer 1 if it's "true" or such. A lispish PMC might evaluate "t" and "nil"... > Thanks, Leo. Welcome, leo

Re: cvs commit: parrot/languages/tcl/lib/macros boolean.imc

2004-10-15 Thread William Coleda
Danke. Making this a macro was, at least, a step up from the function call I had. I haven't done anything real with the PMCs yet (just cargo-culted them mostly from their Perl* counterparts) Though I have to wonder how this will work with inter-language-operability. Thanks, Leo. Leopold Toetsch wr

Re: cvs commit: parrot/languages/tcl/lib/macros boolean.imc

2004-10-15 Thread Leopold Toetsch
Will Coleda <[EMAIL PROTECTED]> wrote: > > Given a pmc, set a register to indicate whether > it is true or false from Tcl's POV. inline op istrue(out INT, in PMC) { with an approprate get_bool() vtable slot. leo