Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

PDLA::Lite exports match documentation, and update documentation #12

Closed
wants to merge 10 commits into from

Conversation

shawnlaffan
Copy link

See commit message in 2233aa1 for details.

If it's approved then it might be worth squashing it all into one commit.

Updates issue #11

Regards,
Shawn.

Otherwise only the first caller would have these functions loaded, and it would thus not match the documentation.

This issue has been around for a long time, as it pre-dates the addition of the package statement in 87487f0 .

Also update the documentation to be clear about which methods are exported, and encourage the method calling syntax regardless.

An alternative is to export nothing and document the method syntax as the only approach, but that would lead to CPAN breakage for those that rely on pdl() etc being exported (albeit such packages will not work if they are loaded second anyway).

Updates issue PDLPorters#11
@mohawk2
Copy link
Member

mohawk2 commented Sep 20, 2015

Thanks for this!

Is it possible to make your lite_loads_twice.t test without using Devel::Symdump? Please do squash all these commits together if they are one logical change.

I see you're doing require Exporter but @ISA = qw( PDLA::Exporter ); - shouldn't they be the same module?

@shawnlaffan
Copy link
Author

No worries.

I've replaced Devel::Symdump with ->can calls. The exporter issue was just cargo culting, and has been simplified to only use PDL::Exporter.

Regards,
Shawn.

wchristian pushed a commit to PDLPorters/pdl that referenced this pull request Apr 30, 2017
Thanks to Shawn Laffan for the patch.  Please see the
original discussion at the PDLPorter/pdls-core github
pull request PDLPorters/pdla-core#12
d-lamb pushed a commit to PDLPorters/pdl that referenced this pull request Jan 19, 2019
Thanks to Shawn Laffan for the patch.  Please see the
original discussion at the PDLPorter/pdls-core github
pull request PDLPorters/pdla-core#12
@mohawk2
Copy link
Member

mohawk2 commented Apr 22, 2019

This has now been superceded by patches brought across from legacy PDL, plus a tweak or two. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants