2006-11-14 | paulb | file changeset files shortlog | Improved/added tests of logical operators. Renamed the string class to str, eliminating the str built-in function. |
paulb@128 | 1 | class X: |
paulb@128 | 2 | x = 1 |
paulb@128 | 3 | class Y: |
paulb@128 | 4 | y = "2" |
paulb@128 | 5 | class B: |
paulb@128 | 6 | b = 3.0 |
paulb@128 | 7 | class C: |
paulb@128 | 8 | c = 4 |
paulb@128 | 9 | a = X() and Y() or B() and not C() |
paulb@128 | 10 | b = a.x and a.y or a.b and not a.c |