ERights Home elang 
Back to: Semantics of 1st child: integer Type On to: Collections

Scalar
Data Types


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:

E Type Java Object Class Java Scalar Type
integer java.math.BigInteger none
float64 java.lang.Double double
boolean java.lang.Boolean boolean
char java.lang.Character char

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.
ERights Home elang 
Back to: Semantics of 1st child: integer Type On to: Collections
Download    FAQ    API    Mail Archive    Donate

report bug (including invalid html)

Golden Key Campaign Blue Ribbon Campaign