Patrick R. Michaud wrote:
The following PIR code produces "NCI" as the output on my system:

    $ cat lower.pir
    .sub main @MAIN
        $P0 = find_name "lower"
        $S0 = typeof $P0
        print $S0
        print "\n"
    .end

Yep. "lower" is one of the names defined in src/builtin.c, which is searched last for by the C<find_name> opcode.

It's not yet really specified, which namespaces we use and where we search for what. Therefore this functionaliy and t/pmc/builtin.t is rather experimental. I used the "lower" entry mainly for testing, as well as e.g. "cos" and "say".

Pm

leo

Reply via email to