diff --git a/doc/sample/Person.im b/doc/sample/Person.im index bca9cb8..6b27d14 100755 --- a/doc/sample/Person.im +++ b/doc/sample/Person.im @@ -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 + /******************************************************************************/ /**