I wrote a new parser for new_pd_from_string, and didn't think to consult the code from rcols. Would it be fruitful to use the same number-to-string parser for the two?
rcols() uses perl's built-in conversion of number strings
to numbers to produce the values for the pdl()
constructor. The hex conversion would be done
in front of the conversion to pdl. I plan to use
POSIX::strtol() to enhance rcols() to support hex
and octal input fields. That might be appropriate
to use in new_pdl_from_string() for the same
purpose.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Reducing the priority since this is pretty much an internal-only modification that does not appear to arise from a specific use case. I'm marking it Pending since I believe that it may have been overtaken by ongoing PDL development. @David: please Open/Close/Comment as desired.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
rcols() uses perl's built-in conversion of number strings
to numbers to produce the values for the pdl()
constructor. The hex conversion would be done
in front of the conversion to pdl. I plan to use
POSIX::strtol() to enhance rcols() to support hex
and octal input fields. That might be appropriate
to use in new_pdl_from_string() for the same
purpose.
Reducing the priority since this is pretty much an internal-only modification that does not appear to arise from a specific use case. I'm marking it Pending since I believe that it may have been overtaken by ongoing PDL development. @David: please Open/Close/Comment as desired.