8000 Support builtin class with kura by kfly8 · Pull Request #2 · kfly8/kura · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support builtin class with kura #2

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

Merged
merged 3 commits into from
Nov 25, 2024
Merged

Support builtin class with kura #2

merged 3 commits into from
Nov 25, 2024

Conversation

kfly8
Copy link
Owner
@kfly8 kfly8 commented Nov 24, 2024

This pull request provides supporting a builtin class with kura, but it has breaking changes:

  • BREAKING CHANGES:
    • Need to put Exporter class manually.
    • Remove $EXPORTER_CLASS

BEFORE

use kura Foo => sub { $_[0] eq 'foo' };

AFTER

use Exporter 'import'; # You need to put Exporter class
use kura Foo => sub { $_[0] eq 'foo' };

The reason to fix it that @ISA of the builtin class is a read-only, so kura failed to modify it.

However, this pull request makes choosing your favorite Exporter class easier probably.

@kfly8 kfly8 self-assigned this Nov 24, 2024
BREAKING CHANGES:
- Need to put Exporter class/ manually.
- Remove $EXPORTER_CLASS

`@ISA` of the builtin class is a read-only, so kura failed to modify it.
However, this commit makes choosing your favorite Exporter class.
@kfly8 kfly8 marked this pull request as ready for review November 25, 2024 01:15
@kfly8 kfly8 merged commit 924ec61 into main Nov 25, 2024
28 checks passed
kfly8 added a commit that referenced this pull request Nov 25, 2024
Changelog diff is:

diff --git a/Changes b/Changes
index 476adc8..1e8652c 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,12 @@ Revision history for Perl extension kura
 
 {{$NEXT}}
 
+0.04 2024-11-25T01:22:39Z
+    - Support builtin class #2
+    - BREAKING CHANGES #2
+        - Need to put Exporter class manually.
+        - Remove $EXPORTER_CLASS
+
 0.03 2024-08-21T14:53:54Z
     - Fixed integration test. #1
kfly8 added a commit that referenced this pull request Dec 7, 2024
Changelog diff is:

diff --git a/Changes b/Changes
index 1e8652c..9556cb1 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,10 @@ Revision history for Perl extension kura
 
 {{$NEXT}}
 
+0.05 2024-12-07T11:40:25Z
+    - Improve docs and tests #4
+    - Add @kura variable #3
+
 0.04 2024-11-25T01:22:39Z
     - Support builtin class #2
     - BREAKING CHANGES #2
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.

1 participant
0