Skip to content

Commit 38d1af5

Browse files
committed
Update to Perl 5.42.0
1 parent 81ed03d commit 38d1af5

File tree

5 files changed

+69
-6
lines changed

5 files changed

+69
-6
lines changed

Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for Syntax-Construct
22

3+
1.043 2025--
4+
- Perl 5.42.0 released
5+
36
1.042 2025-06-13
47
- Add sig-warn-obj
58

lib/Syntax/Construct.pm

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ use 5.006002;
44
use strict;
55
use warnings;
66

7-
our $VERSION = '1.042';
7+
our $VERSION = '1.043';
88

99
my %introduces = do { no warnings 'qw';
10-
( '5.040' => [qw[
10+
( '5.042' => [qw[
11+
:writer my_method ->& unicode16.0 ^^=
12+
]],
13+
'5.040' => [qw[
1114
^^ __CLASS__ :reader
1215
]],
1316
'5.038' => [qw[
@@ -185,6 +188,9 @@ my %alias = (
185188
'optimistic-eval' => '*{}',
186189
# 5.040
187190
'logical-xor' => '^^',
191+
# 5.042
192+
'lexical-method-invocation-operator' => '->&',
193+
'assign-logical-xor' => '^^=',
188194
);
189195

190196
my %_introduced = map {
@@ -305,7 +311,7 @@ Syntax::Construct - Explicitly state which non-feature constructs are used in th
305311
306312
=head1 VERSION
307313
308-
Version 1.042
314+
Version 1.043
309315
310316
=head1 SYNOPSIS
311317
@@ -989,6 +995,32 @@ L<perl5400delta/New __CLASS__ Keyword>.
989995
990996
L<perl5400delta/:reader attribute for field variables>
991997
998+
=head2 5.042
999+
1000+
=head3 :writer
1001+
1002+
L<perldelta/New :writer attribute on field variables>
1003+
1004+
=head3 my_method
1005+
1006+
L<perldelta/Lexical method declaration using my method>
1007+
1008+
=head3 ->&
1009+
1010+
L<< perldelta/Lexical method invocation operator ->& >>
1011+
1012+
Alias: lexical-method-invocation-operator
1013+
1014+
=head3 unicode16.0
1015+
1016+
L<perldelta/Unicode 16.0 supported>
1017+
1018+
=head3 ^^=
1019+
1020+
L<perldelta/Assigning logical xor ^^= operator>
1021+
1022+
Alias: assign-logical-xor
1023+
9921024
=for completeness
9931025
=head2 old
9941026

t/02-constructs.t

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,34 @@ sub skippable {
2727

2828

2929
my %tests = (
30+
'5.042' => [
31+
[ ':writer',
32+
'use experimental qw{ class };
33+
class MyClass3 { field $x :writer :reader }
34+
my $o = MyClass3->new;
35+
$o->set_x(2);
36+
$o->x',
37+
'2' ],
38+
[ 'my_method',
39+
'use experimental qw{ class };
40+
class MyClass4 { my method x { "x" }; method p { $self->&x() } }
41+
my $o = MyClass4->new;
42+
$o->p',
43+
'x' ],
44+
[ '->&',
45+
'use experimental qw{ class };
46+
class MyClass5 { my method x { "x" }; method p { $self->&x() } }
47+
my $o = MyClass5->new;
48+
$o->p',
49+
'x' ],
50+
[ 'unicode16.0',
51+
'"\N{HARP}" eq "\N{U+1FA89}"', 1],
52+
[ '^^=',
53+
'my $x = 1;
54+
$x ^^= 0;
55+
$x',
56+
1 ]
57+
],
3058
'5.040' => [
3159
[ '^^',
3260
'1 ^^ 0', 1 ],

t/05-functions.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use FindBin;
66

77
my %count;
88
BEGIN {
9-
%count = (constructs => 103, old => 4, removed => 7);
9+
%count = (constructs => 108, old => 4, removed => 7);
1010
}
1111

1212
use Test::More tests => 5;

xt/completness.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ use FindBin;
55

66
my $plan;
77
BEGIN {
8-
my %count = (constructs => 103,
8+
my %count = (constructs => 108,
99
removed => 7,
10-
aliases => 80,
10+
aliases => 82,
1111
old => 4);
1212
$plan = 5 * $count{constructs} + 3 * $count{removed}
1313
+ 6 * $count{aliases} + $count{old} + 1;

0 commit comments

Comments
 (0)