Matt Diephouse wrote:
via RT jerry gay <[EMAIL PROTECTED]> wrote:

there have been questions lately about the use of the 'new_pad' op.
will coleda provided a failing example, which i've included below.
upon investigating, i found no tests for new_pad. furthermore, i found
no documentation for new_pad in order to start writing tests. so,
before tests can be written, the documentation needs to be found or
written.

here's the failing code snippet:


And here's a simpler snippet that displays the same failure:

.sub _main :main
  .local pmc pir
  pir = compreg "PIR"

  new_pad 0

$S0 = <<"END_PIR"
.sub a
  $P1 = find_lex 1, '$a'

There is no lexical '$a' and it seems that the find_lex *1* is digging one nesting too deep (Pad index out of range).
find_lex 0 or find_lex -1 works, that is it can't find '$a'.

leo

Reply via email to