inline op istrue(out INT, in PMC) {
with an approprate get_bool() vtable slot.
leo
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.
> 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