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