Menu

#89 PDL->null->copy returns an empty (not null) piddle

None
closed
nobody
2.016 (1)
1
2022-04-14
2016-10-06
Diab Jerius
No

PDL v. 2.016

Copying a null piddle returns an empty piddle:

% perl -MPDL -E 'say PDL->null->copy->info'
PDL: Byte D [0]

% perl -MPDL -E 'say PDL->null->copy->isnull'
0

I expect it to return another null piddle.

Discussion

  • Chris Marshall

    Chris Marshall - 2016-10-07
    • Group: normal --> feature_request
    • Priority: 5 --> 1
     
  • Chris Marshall

    Chris Marshall - 2016-10-07

    Per the docs a Null piddle is only valid on the LHS of an assignment statement. Changing this to a feature request since it seems to be more of a discussion regarding how to treat/use Null piddles in inappropriate contexts. Croaking might be more appropriate although, ignoring the specialness of Null piddles and trying to do the right (wrong) thing could be more friendly. API discussion is needed. Please continue discussion on the PDL mailing lists.

     
  • Chris Marshall

    Chris Marshall - 2016-10-07

    Ticket moved from /p/pdl/bugs/427/

     
  • mohawk

    mohawk - 2022-02-27

    As of 2.073, null inputs cause an exception.

     
  • mohawk

    mohawk - 2022-04-14
    • status: open --> closed
    • Group: feature_request -->
     

Log in to post a comment.