develooper Front page | perl.perl5.porters | Postings from February 2006

targets of lvalue functions

Thread Next
From:
Nicholas Clark
Date:
February 23, 2006 13:34
Subject:
targets of lvalue functions
Message ID:
20060223213354.GD616@plum.flirble.org
Why are targets of lvalue functions PADMY rather than PADTMP?

Perl_mod in op.c:

    case OP_POS:
    case OP_VEC:
        if (type == OP_LEAVESUBLV)
            o->op_private |= OPpMAYBE_LVSUB;
      lvalue_func:
        pad_free(o->op_targ);
        o->op_targ = pad_alloc(o->op_type, SVs_PADMY);


Nicholas Clark

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About