Ticket #1116: ch04_page16.patch
File ch04_page16.patch, 0.7 KB (added by jkeenan, 12 years ago) |
---|
-
docs/book/pir/ch04_variables.pod
160 160 X<logical opcodes> 161 161 The logical opcodes evaluate the truth of their arguments. They are most 162 162 useful to make decisions for control flow. Integers and numeric PMCs 163 support logicalare false if they're 0 and true otherwise. Strings are163 are false if they're 0 and true otherwise. Strings are 164 164 false if they're the empty string or a single character "0", and true 165 165 otherwise. PMCs are true when their C<get_bool>X<get_bool vtable 166 166 function> vtable function returns a nonzero value.