develooper Front page | perl.perl6.internals | Postings from July 2002

[perl #15846] [PATCH] lexical scope ops, test and example

Thread Next
Jonathan Sillito
July 30, 2002 11:56
[perl #15846] [PATCH] lexical scope ops, test and example
Message ID:
# New Ticket Created by  Jonathan Sillito 
# Please include the string:  [perl #15846]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This patch supersedes my previous lexical scope patch 
<URL: >

In this implementation, find_lex and store_lex only operate on the
current pad, and open_lex/close_lex have been renamed to

The implementation is still quite simple (no pad descriptors, no
accessing by index), but is at least a start on what is needed.

The files affected by the patch are:
- core.ops: added implementation the 4 ops.
- dod.c: added interpreter->ctx.pad_stack to the initial first dod pass
  (I am not sure how to test if this is correct ...)
- interpreter.c and interpreter.h: added pad_stack to Parrot_Context.

In addition to the patch an updated test and example pasm file are

- lexicals.t: simple tests for the 4 ops that should to in t/op/
- lexicals.pasm: simple example that should go in examples/assembly/

Again, comments welcome.
Jonathan Sillito

-- attachment  1 ------------------------------------------------------

-- attachment  2 ------------------------------------------------------

-- attachment  3 ------------------------------------------------------

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About