doc: add and, or, not, is, is not operators
This commit is contained in:
@@ -409,8 +409,11 @@ cout put:'Hello, world!' unless x <= 10.
|
||||
execution.
|
||||
|
||||
- unary operators
|
||||
- boolean NOT (!)
|
||||
- boolean NOT (not)
|
||||
- bitwise NOT (~)
|
||||
- binary operators
|
||||
- Type check operator (is, is not)
|
||||
- Protocol check operator (understands)
|
||||
- unary messages, complex messages
|
||||
- binary operators
|
||||
- multiplication (*)
|
||||
@@ -423,8 +426,8 @@ cout put:'Hello, world!' unless x <= 10.
|
||||
- bitwise AND (&)
|
||||
- bitwise XOR (^)
|
||||
- bitwise OR (|)
|
||||
- boolean AND (&&)
|
||||
- boolean OR (||)
|
||||
- boolean AND (and)
|
||||
- boolean OR (or)
|
||||
- cascade (;)
|
||||
- inline if-else
|
||||
- keyword messages
|
||||
@@ -538,6 +541,12 @@ p1 = do
|
||||
x
|
||||
end.
|
||||
|
||||
|
||||
v = 'Hello'.
|
||||
if v is String then
|
||||
cout put:'v is a string!'
|
||||
end
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user