This repository has been archived by the owner on Jan 23, 2022. It is now read-only.
use PDL::Lite; only loads functions for first package it is called in #11
Comments
shawnlaffan
added a commit
to shawnlaffan/pdla-core
that referenced
this issue
Sep 20, 2015
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
shawnlaffan
added a commit
to shawnlaffan/pdla-core
that referenced
this issue
Sep 20, 2015
Update issue PDLPorters#11
shawnlaffan
added a commit
to shawnlaffan/pdla-core
that referenced
this issue
Sep 20, 2015
shawnlaffan
added a commit
to shawnlaffan/pdla-core
that referenced
this issue
Sep 20, 2015
shawnlaffan
added a commit
to shawnlaffan/pdla-core
that referenced
this issue
Sep 20, 2015
shawnlaffan
added a commit
to shawnlaffan/pdla-core
that referenced
this issue
Sep 20, 2015
Updates issue PDLPorters#11
shawnlaffan
added a commit
to shawnlaffan/pdla-core
that referenced
this issue
Sep 20, 2015
shawnlaffan
added a commit
to shawnlaffan/pdla-core
that referenced
this issue
Sep 20, 2015
shawnlaffan
added a commit
to shawnlaffan/pdla-core
that referenced
this issue
Sep 20, 2015
updates issue PDLPorters#11
Closing as superseded (see #12 ) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[ Reposted from PDLPorters/pdl#146 - will look into a PR if I get a chance ]
Using PDL::Lite in more than one package only imports pdl and the other standard functions in the first package it is called from.
Code to reproduce is below.
The code works if
use PDL::Lite
is replaced with withuse PDL
oruse PDL::LiteF
, or ifpdl()
is set using a glob.If a
use PDL::Lite
is put before the first package declaration then neither sub call works.Tested on StrawberryPerl 5.20, pdl 2.012 and pdl 2.013.
Regards,
Shawn.
The text was updated successfully, but these errors were encountered: