Skip to content

Conversation

@jkeenan
Copy link
Contributor

@jkeenan jkeenan commented Nov 22, 2025

Way back in 2001 several tests were added to t/op/goto.t which referred to a concept called a 'try block':

commit 9c5794fe8bd5803990d11472f5ebcdba0e7877cc
Author:     Robin Houston <robin@cpan.org>
AuthorDate: Wed Mar 14 01:52:51 2001 +0000
Commit:     Jarkko Hietaniemi <jhi@iki.fi>
CommitDate: Wed Mar 14 02:41:54 2001 +0000
...
diff --git a/t/op/goto.t b/t/op/goto.t
index 246184c56b..6f9e3493d5 100755
--- a/t/op/goto.t
+++ b/t/op/goto.t
...
+# Does goto work correctly within a try block?

That language is still in use in two files -- but since we now have a 'try' keyword and a feature 'try', such language is now ambiguous.

Here we change 'try block' to 'eval block' in those test descriptions and comments where we're clearly speaking about 'eval BLOCK'.


  • This set of changes does not require a perldelta entry.

Way back in 2001 several tests were added to t/op/goto.t which
referred to a concept called a 'try block':

    commit 9c5794f
    Author:     Robin Houston <robin@cpan.org>
    AuthorDate: Wed Mar 14 01:52:51 2001 +0000
    Commit:     Jarkko Hietaniemi <jhi@iki.fi>
    CommitDate: Wed Mar 14 02:41:54 2001 +0000
    ...
    diff --git a/t/op/goto.t b/t/op/goto.t
    index 246184c..6f9e349 100755
    --- a/t/op/goto.t
    +++ b/t/op/goto.t
    ...
    +# Does goto work correctly within a try block?

That language is still in use in two files -- but since we now have
a 'try' keyword and a feature 'try', such language is now ambiguous.

Here we change 'try block' to 'eval block' in those test descriptions
and comments where we're clearly speaking about 'eval BLOCK'.
@jkeenan jkeenan merged commit a8821a0 into Perl:blead Nov 23, 2025
34 checks passed
@jkeenan jkeenan deleted the try-block-to-eval-block-20251122 branch November 23, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants