Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Numeric flags basics

by syphilis (Bishop)
on Aug 20, 2021 at 02:06 UTC ( #11135975=perlquestion: print w/replies, xml ) Need Help??

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 (Curate) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11135975]
Approved by kcott
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2021-12-01 06:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?