This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Recognise `//=` and `||=` syntax in signature parameter defaults
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>
Sat, 19 Nov 2022 11:48:19 +0000 (11:48 +0000)
committerPaul Evans <leonerd@leonerd.org.uk>
Sat, 26 Nov 2022 15:47:22 +0000 (15:47 +0000)
commitf17d9825ab9b50967fd3d8742cc1bbccec96c049
tree1835ae9ad258f5fadd48b08c96b33887768c3352
parent5bd919dc87af18e1bce77d3ead83b704a2903292
Recognise `//=` and `||=` syntax in signature parameter defaults

These create parameters where the default expression is assigned
whenever the caller did not pass a defined (or true) value. I.e. both if
it is missing, or is present but undef (or false).
16 files changed:
embed.fnc
embed.h
lib/B/Op_private.pm
op.c
opcode.h
perly.act
perly.h
perly.tab
perly.y
pod/perldelta.pod
pod/perlsub.pod
pp.c
proto.h
regen/op_private
t/op/signatures.t
toke.c