Skip to content

Commit

Permalink
Fix for the Future: Make PDL build with Perl 5.41 and newer (#490)
Browse files Browse the repository at this point in the history
* Fix for the Future: Make PDL build with Perl 5.41 and newer

Perl 5 has now simplified the syntax global typemaps.  PDL
has copied part of the Perl code and should follow along.
The fix has been suggested by @Leont, who also authored
the simplification in Perl5.
  • Loading branch information
HaraldJoerg authored Aug 11, 2024
1 parent 17632cc commit 7e6fced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Basic/Gen/PP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ sub typemap_eval { # lifted from ExtUtils::ParseXS::Eval, ignoring eg $ALIAS
my ($var, $type, $num, $init, $pname, $arg, $ntype, $argoff, $subtype)
= @$varhash{qw(var type num init pname arg ntype argoff subtype)};
my $ALIAS;
my $rv = eval qq("$code");
my $rv = eval qq(qq\a$code\a);
die $@ if $@;
$rv;
}
Expand Down
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- now slices etc with dataflow turn off backward dataflow if any input has inward-only dataflow (#485)
- add GSL::RNG::ran_shuffle_1d
- add IO::Pic support for XBM
- fix typemaps for future Perl versions (#487) - thanks @HaraldJoerg

2.089_02 2024-06-26
- PDL::VectorValued::vcos into Primitive - thanks @moocow-the-bovine
Expand Down

0 comments on commit 7e6fced

Please sign in to comment.