-
-
Notifications
You must be signed in to change notification settings - Fork 43
Added runfiles implementation #92
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
Conversation
|
If this change is merged then a new release should be cut. |
perl/runfiles/Runfiles.pm
Outdated
| =cut | ||
|
|
||
| sub create { | ||
| my ($class) = @_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may not apply here, but do you want to guard against 'create' being called on a blessed instance with:
my $package = shift;
my $class = ref($package) || $package;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean "blessed instance"? I'm happy to apply any changes though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've seen this happen before:
my $r = Runfiles->create();
my $r2 = $r->create(); // current implementation wouldn't support this bad use case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated!
closes #85