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

Headsup about core builtin::lexically_export feature #4

Open
leonerd opened this issue Jun 27, 2022 · 1 comment
Open

Headsup about core builtin::lexically_export feature #4

leonerd opened this issue Jun 27, 2022 · 1 comment

Comments

@leonerd
Copy link

leonerd commented Jun 27, 2022

A quick note to say you might be interested in the following core perl PR:

Perl/perl5#19895

If merged, it will add a new core function builtin::lexically_export, which will basically perform the exact same job as your XS code. At that point, it would be possible for your module to use that instead of its custom XS code, meaning it would be a pure-perl module on 5.37.2 onwards.

@dolandemort
Copy link

@doy: Wanna start off by saying thanks for this module; it is the most elegant of the solutions available on CPAN, in my opinion.

@leonerd: That is a most excellent addition to core perl. I have changed my most recent project to use perl-5.37 because of it, so instrumental is it to my purposes. I don't know what your motivation for creating it was, but I have found it to be very useful for exporting a subroutine to another package for internal use, without it being available as a method. It is by far the simplest way I have found to segregate functions from methods. I am very grateful for this contribution.

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

No branches or pull requests

2 participants