| parrotcode: PyBoolean PMC | |
| Contents | Dynamic PMCs |

classes/pyboolean.pmc - PyBoolean PMC

This class implements a Python Boolean value variable.
Albeit PyBoolean is derived from PyInt,
it doesn't morph to other types,
its value is changed only.

void class_init()PMC* "__new__"(PMC *class, PMC *source)INTVAL get_bool()PMC *get_class()STRING *get_string ()INTVAL is_equal (PMC *value)== operation.PMC *logical_not(PMC *dest)void logical_not()void set_bool (INTVAL value)void set_integer_native (INTVAL value)void set_integer_same(PMC *value)PyInt *value.void set_pmc(PMC *value)*value,
calling the appropriate set_* method according to the type of *value.
|
|
|