develooper Front page | perl.perl5.porters | Postings from November 2016

TRUE and FALSE

Thread Next
From:
Andy Lester
Date:
November 21, 2016 00:01
Subject:
TRUE and FALSE
Message ID:
5CB8CDC4-5CC7-400C-9DD7-B100041DC6BE@petdance.com
Why do we have the TRUE and FALSE macros?

Is the intent that if we use a bool type anywhere that they will be set using TRUE and FALSE or cBOOL()?

I'm not seeing anything in pod/perlhack*.pod that discusses them.

I see plenty of code like:

bool have_branch = 0;
bool skip = 1;
const bool utf8_target = (sv && SvUTF8(sv)) ? 1 : 0;

--
Andy Lester => www.petdance.com


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About