_Tcl::__list ^

Given a PMC, get a list from it. If the PMC is a TclList, this is as simple as returning the list. If it's a string, use __stringToList.

_Tcl::__dict ^

Given a PMC, get a TclDict from it, converting as needed.

_Tcl::__number ^

Given a PMC, get a number from it.

_Tcl::__integer ^

Given a PMC, get an integer from it.

_Tcl::__index ^

_Tcl::__channel ^

Given a string, return the appropriate channel.

_Tcl::__expr ^

Given an expression, return a subroutine, or optionally, the raw PIR

_Tcl::__script ^

Given a chunk of tcl code, return a subroutine.

_Tcl::__namespace ^

Given a string namespace, return an array of names.

_Tcl::__boolean ^

Given a string, return its boolean value if it's a valid boolean. Otherwise, throw an exception.

_Tcl::__call_level ^

Given a pmc containing the tcl-style call level, return an int-like pmc indicating the parrot-style level, and an integer with a boolean 0/1 - was this a valid tcl-style level, or did we get this value as a default?


parrot