The whole scratchpad is doomed and will be scratched RSN (see pdd20 instead). A patch with immanent changes is at http://perlcabal.org/~lt/pad.diff but the patch doesn't properly reflect deleted files - if you like to experiment, please svn rm the deleted files:

D      src/lexical.c
D      include/parrot/lexical.h
D      classes/scratchpad.pmc

Two items inside parrot source like lexical MMDs are TODOed but untested and shouldn't harm now.

Two parrot tests are failing with it, I'll explore more tomorrow.

Failed Test    Stat Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------ -------
t/pmc/sub.t       1   256    41    1   2.44%  11
t/src/extend.t    1   256    13    1   7.69%  13
 (1 subtest UNEXPECTEDLY SUCCEEDED), 8 tests and 363 subtests skipped.
Failed 2/179 test scripts, 98.88% okay. 2/4008 subtests failed, 99.95% okay.

Diffstat of patch is nice - less code is good ;-)
$ diffstat -w 70 pad.diff
 MANIFEST                     |    3
 classes/closure.pmc          |   21 --
 classes/coroutine.pmc        |   10
 classes/pmc.num              |    2
 classes/scratchpad.pmc       |  215 --------------------
 config/gen/makefiles/root.in |    3
 include/parrot/interpreter.h |    1
 include/parrot/lexical.h     |   45 ----
 include/parrot/parrot.h      |    1
 include/parrot/sub.h         |    5
 ops/ops.num                  |   52 ++--
 ops/var.ops                  |  207 ++-----------------
 src/global.c                 |    3
 src/inter_create.c           |    4
 src/inter_misc.c             |    2
 src/lexical.c                |  346 ---------------------------------
 src/mmd.c                    |   15 -
 src/sub.c                    |   73 ++----
 t/op/lexicals.t              |    2
 t/pmc/sub.t                  |    5
 t/src/extend.t               |    1
 21 files changed, 93 insertions, 923 deletions

leo

Reply via email to