Next: String
Up: The ALLCOT semantics
Previous: Every function is a method
Consider Integer to be equivalent
to the C type int.
The built-in type Integer must support
- addition:
- for instance x + y,
- multiplication:
- for instance x * y,
- subtraction:
- for instance x - y,
- division-remainder:
- for instance x rem y,
- unary-minus:
- for instance -x,
- equality-test:
- for instance x = y,
- unequality-test:
- for instance x -= y,
- strict-inequality-test:
- for instance x < y,
- large-inequality-test:
- for instance x <= y,
- printing:
- for instance print(x).
Next: String
Up: The ALLCOT semantics
Previous: Every function is a method
Marc Moreno Maza
2004-12-01