summaryrefslogtreecommitdiff
path: root/pod/perltodo.pod
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-01-05 20:14:02 +0000
committerNicholas Clark <nick@ccl4.org>2005-01-05 20:14:02 +0000
commit6168cf9995a8bfcfe4ab9350ebc7de70215ae9af (patch)
tree1d5261855a486768f66efa8f31ba3eadd424c1b9 /pod/perltodo.pod
parente6827a76d6739cf7ead59ff0f2fbe7afeb7086ed (diff)
downloadperl-6168cf9995a8bfcfe4ab9350ebc7de70215ae9af.tar.gz
Error-free constant folding is a TODO
p4raw-id: //depot/perl@23754
Diffstat (limited to 'pod/perltodo.pod')
-rw-r--r--pod/perltodo.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perltodo.pod b/pod/perltodo.pod
index e44f242a5c..5479568bf0 100644
--- a/pod/perltodo.pod
+++ b/pod/perltodo.pod
@@ -184,6 +184,13 @@ Clean these up. Move them to mathom.c, and don't compile for blead?
The old perltodo notes "This has been done in places, but needs a thorough
code review. Also fchdir is available in some platforms."
+=head2 Constant folding
+
+The peephole optimiser should trap errors during constant folding, and give
+up on the folding, rather than bailing out at compile time. It is quite
+possible that the unfoldable constant is in unreachable code, eg something
+akin to C<$a = 0/0 if 0;>
+
=head1 Tests
=head2 Make Schwern poorer