E has only four scalar data types: integer, float64, boolean, and char. In addition, there is the special scalar value null. All scalars are immutable -- after all, what would it mean to change the number 3?. The scalars correspond to existing Java classes, and for methods they have in common one should also consult the Javadoc-umentation for these classes. The correspondences:
All the scalars are also pass-by-copy across the network. In other words, suppose object Alice is on one machine and object Bob is on another. If Alice sends to Bob a message that has 3 as an argument, the 3 gets copied from Alice's machine to Bob's machine, so that Bob receives a message whose argument is a local 3.
|
|||||||||||||||||||||||||
Unless stated otherwise, all text on this page which is either unattributed or by Mark S. Miller is hereby placed in the public domain.
|