Hi Swawn-
Thanks for the patch. The official PDL site is at
sf.net and the reference bug tracker. I'm not sure
why you wouldn't be able to open a ticket---what is
your sf.net login and I can add you as a developer.
The goal/plan/hope for the PDLA work was to factor
out the many modules in the PDL distribution in
favor of separate distributions with improved
support and lighter weight development. The work
for a new PDL implementation could then target the
PDLA::Core rather than the whole kitchen sick of
the full PDL distribution.
In preparation for PDL next gen development, there
was a push to finish 64bit indexing and address
support for PDL-2.x to make a stable, complete,
launch point for PDL::NG development. Unfortunately,
the 64bit support never made it into PDLA and
the various contributors ran out of time to do
the update.
My limited development cycles have been directed
to updating the Perl OpenGL bindings (still a work
in progress) and tracking the PDL-2.x distribution
to keep things running---hence the bitrot fix
release so that PDL-2.x will continue to build
out-of-the-box on pretty much all perl platforms.
Please see my github repos for OpenGL::Modern and
PDL::Tiny to see the ideas so far. Progress is being
made but contributions from other developers has
slowed and my own time is limited.
https://github.com/devel-chm/OpenGL-Modern
https://github.com/devel-chm/PDL-Tiny
More interactive discussion happens in fits and
starts at the irc.perl.org channels #pdl and #pogl
Cheers,
Chris
On 4/29/2017 23:07, Shawn Laffan wrote:
I can't seem to create an issue on the SF issue tracker, and I'm not
sure if the github issue tracker is canonical at the moment.
Using PDL::Lite in more than one package imports pdl and the other
standard functions only into the first package it is called from.
Code to reproduce is below.
The attached patch should fix it, and also adds more documentation.
The patch is a squashed (and simplified) version of a pull request
sent to the pdla-core github repo in 2015.
https://github.com/PDLPorters/pdla-core/pull/12
Shawn.
====
The code works if |use PDL::Lite| is replaced with with |use PDL| or
|use PDL::LiteF|, or if |pdl()| is set using a glob.
If a |use PDL::Lite| is put before the first package declaration then
neither sub call works.
package mk1 {
use PDL::Lite;
sub x {
return pdl (1..10);
}
}
package mk2 {
use PDL::Lite;
#*pdl = \&PDL::Core::pdl; # uncomment and the code works
sub x {
return pdl (11..20);
}
}
print mk1::x,"\n";# [1 2 3 4 5 6 7 8 9 10]
print mk2::x,"\n";# Undefined subroutine &mk2::pdl called at xx.t line 21.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general