Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modernize mkppport and lib/unicore/mktables #17638

Merged
merged 2 commits into from
Mar 19, 2020
Merged

Conversation

atoomic
Copy link
Member

@atoomic atoomic commented Mar 12, 2020

use function signatures in lib/unicore/mktables and mkppport avoiding some boilerplates to check for @_.

Copy link
Contributor

@khwilliamson khwilliamson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you have to reproclaim strict, etc in every package?

sub set_fate {
my $self = shift;
my $fate = shift;
my $reason = shift; # Ignored unless suppressing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$reason is not optional, and the comment should be retained

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment restored
nothing was enforcing $reason to be a mandatory argument, and it was possible before this change to call it without a reason, I can introduce a behavior change and make it mandatory

Copy link
Member Author

@atoomic atoomic Mar 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too few arguments for subroutine 'Property::set_fate' at lib/unicore/mktables line 9176. in sub set_proxy_for is calling it with a single arg

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

restoring it as an optional argument for now

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I'd checked during my review that it was always present, but if not, ok

Also regenerate files depending on lib/unicore/mktables

    ./perl -Ilib regen/mk_invlists.pl; ./perl -Ilib regen/regcharclass.pl
@atoomic
Copy link
Member Author

atoomic commented Mar 19, 2020

@khwilliamson fbdf3dd is providing the changes requested during the first review, let smoke it before merging changes can probably be spotted from 1e192bb [ which I had to modify later to fix mktable ]

@atoomic atoomic requested a review from khwilliamson March 19, 2020 15:41
@khwilliamson khwilliamson merged commit 4fe9356 into Perl:blead Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants