diff options
Diffstat (limited to 'pod/perltodo.pod')
-rw-r--r-- | pod/perltodo.pod | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pod/perltodo.pod b/pod/perltodo.pod index db7274c23f..156095635c 100644 --- a/pod/perltodo.pod +++ b/pod/perltodo.pod @@ -183,6 +183,10 @@ code review. Also fchdir is available in some platforms." The old perltodo notes that we could optimise foreach to iterate in reverse. (instead of making a reversed copy on the stack) +It seems that cx->blk_loop.itermax could be hijacked to act as a go up/go +down flag, with cx->blk_loop.iterix primed in pp_enteriter for the go down +case (ie reverse). However, it looks slightly tricky identifying the shape of +foreach reverse in the optree in Perl_peep. =head1 Tests |