| parrotcode boolean PMC | |
| Docs | FAQ | Download | Examples | Talks | Resources | Perl 6 | Languages | Who's Who | Donors | Cage Cleaners | Wiki | |
src/pmc/boolean.pmc - Boolean PMC
This class implements a boolean value variable.
Albeit the Boolean PMC is derived from the Integer PMC,
it doesn't morph to other types.
Only its value is changed.
PMC *instantiate(PMC *sig)Object constructor.
SELF is a Boolean Class object.
Return a new bool object according to the passed PMC value.
STRING *get_string()Return "1" or "0".
void set_integer_native(INTVAL value)
void set_bool(INTVAL value)
void set_pmc(PMC *value)
void set_number_native(FLOATVAL value)Sets the value to value evaluated in a boolean context.
void set_string_native(STRING *value)Sets the value to *value evaluated in a boolean context.
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|