Programs
General

Comments
Constants
Exceptions
Execution Environments
Identifiers
Relaxations
Spacing
T-Tables
Text
Variables

Lines
Expressions
Types
Operators
Binary Arithmetic Operators
Boolean Operators
Conversion Operators
Relational Operators
Structural Operators
Unary Arithmetic Operators

Literals
Comments
Constants
Exceptions
Execution Environments
Identifiers
Relaxations
Spacing
T-Tables
Text
Variables

Lines
Expressions
Types
Operators
Binary Arithmetic Operators
Boolean Operators
Conversion Operators
Relational Operators
Structural Operators
Unary Arithmetic Operators

Literals
The following is the documentation for structural operators.

Syntax: `x = a`

Description: Sets x to the value of a. Also called a *dereference*, as a variable technically is a reference to a piece of memory.

Exceptions:

- Unassigned, if the variable has not been assigned a value.

Relaxations:

- Exception

Syntax: `x = a.b`

Description: Sets x to the value of element b in a. a is a variable of a structural type. The structural type has an element b.

For more information on structures, see structures.

Syntax: `x = a[b]`

Description: Sets x to the `(b+1)`

'th element of a. a is a variable of array type. The first index of an array is 0.

Exceptions:

- Out of bounds, if b is less than zero or more than or equal to the size of a.

Relaxations:

- Exception

Syntax: `x = a.length`

or `x = |a|`

Description: Sets x to the length of a. a is a variable of array type.

Syntax: `x = new a`

Description: Sets x to a new unassigned variable of type a. a must be a type descriptor.

Exceptions:

- Unable to allocate, if allocation failed.

Relaxations:

- Exception

Syntax: `delete a`

Description: Unallocates variable a.

Exceptions:

- Unable to deallocate, if deallocation failed.

Relaxations:

- Exception

We would be more than happy to help you. Our opening hours are 9–15 (CET).

📞 (+47) 93 68 22 77

Nils Bays vei 50, 0876 Oslo, Norway

Copyright © 2018-24 progsbase.com by Inductive AS.