20 lines
295 B
Plaintext
20 lines
295 B
Plaintext
:sig
|
|
void DValue::set_bool(bool b)
|
|
|
|
:params
|
|
b : boolean value to store
|
|
return value : none
|
|
|
|
:see
|
|
0_DValue
|
|
2_DValue_to_bool
|
|
|
|
:content
|
|
Stores a boolean value, forwarding through references when possible.
|
|
|
|
|
|
:example
|
|
DValue flag;
|
|
flag.set_bool(true);
|
|
print(flag.to_bool() ? "true" : "false", "\n");
|