5.2.2 Assignment for value objects

For a variable value object:

V: var T

may be assigned a new reference by means of an assignment statement:

V := exp

where exp is a value expression that when evaluated returns a value, which is the assigned to R.

The value returned by exp must be of type T.

Primitive values

Primitive values like integer, boolean, char and float …

V: var Integer 
B: var Boolean 
C: var Char
F: var Float
V := 117
B := True
C := 'x'
F := 3.14

String values

S: var String
S := "Hello  world"

Compound/composite value

Point(x: var integer, y: var integer):
   ...

P1 := Point(10,11)
P2 := Point(20,21)
P1 := P2

Examples

Hello world