http://qs321.pair.com?node_id=11135975

syphilis has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

Is it the case that if a perl scalar's flags includes IOK, then the pIOK flag is also inevitably set ?
Similarly, does the presence of the NOK flag guarantee the presence of the pNOK flag ?
I'm interested to see any examples showing that the answer to either of those questions is "No".

Cheers,
Rob

Replies are listed 'Best First'.
Re: Numeric flags basics
by Haarg (Priest) on Aug 20, 2021 at 09:55 UTC
    The only way possible to have a scalar with IOK set and pIOK not set would be with a bug. Or with an XS module with a bug.
      The only way possible to have a scalar with IOK set and pIOK not set would be with a bug. Or with an XS module with a bug

      Thank you Haarg, for confirming that !!

      My follow-up (foolo'-up ?) questions would be:
      1) Presumably, the same applies to the NOK/pNOK flags ?
      2) Is this explicitly stated in (or implicit in) some piece of perl documentation ?

      In any case, I regard my initial post as having been satisfactorily answered ;-)
      Thanks again.

      Cheers,
      Rob