File: Boolean.schelp

package info (click to toggle)
supercollider 1%3A3.13.0%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 80,292 kB
  • sloc: cpp: 476,363; lisp: 84,680; ansic: 77,685; sh: 25,509; python: 7,909; makefile: 3,440; perl: 1,964; javascript: 974; xml: 826; java: 677; yacc: 314; lex: 175; objc: 152; ruby: 136
file content (65 lines) | stat: -rw-r--r-- 1,716 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
class::Boolean
summary:: abstract class whose instances represent a logical value
categories::Core
related:: Reference/Control-Structures

description::
Boolean is the superclass of link::Classes/True:: and link::Classes/False:: which are the concrete realizations.
In code True and False are represented by the literal values code::true:: and code::false::.

instanceMethods::

private:: while
private:: storeOn
private:: trace
private:: printOn
private:: archiveAsCompileString

method::xor

returns:: the exclusive or of the receiver and another Boolean.

method::and

If the receiver is true then answer the evaluation of function.
If the receiver is false then function is not evaluated and the message answers false.

method::or

If the receiver is false then answer the evaluation of function.
If the receiver is true then function is not evaluated and the message answers true.

method::&&

returns:: true if the receiver is true and aBoolean is true.

method::||

returns:: true if either the receiver is true or aBoolean is true.

method::nand

returns:: true unless both the operands are true (Sheffer stroke)

method::not

returns:: true if the receiver is false, and false if the receiver is true.

method::if

If the receiver is true, answer the evaluation of the trueFunc. If the receiver is false, answer the evaluation of the falseFunc.

method::asInteger
method::binaryValue

returns:: 1 if the receiver is true, and 0 if the receiver is false.

method::asBoolean
method::booleanValue
Returns:: The receiver. The same message is understood by link::Classes/SimpleNumber:: and can be used to convert it to boolean.

method::keywordWarnings

turn on/off warnings if a keyword argument is not found