This section describes sub-expressions.

A portion of an expression can grouped as a sub-expression using round brackets: (...).

When sub-expressions are used, the order of evaluation will be affected as described below:

1. Inner sub-expressions are evaluated before outer sub-expressions.

2. Sub-expressions are evaluated before the base expression.

Examples of sub-expressions:

1. Sub-expressions are evaluated first:

# "1 + 2" is evaluated first, because "(1 + 2)" is a sub-expression
(1 + 2) * 3;

# The above expression is an alias of:

2. Inner sub-expressions are evaluated first:

# "2 - 4" is evaluated first, 
# because "(2 - 4)" is an inner sub-expression
(1 + (2 - 4)) * 3;

# The above expression is an alias of:

Last update: 2017.

Table of Contents

 About This Book

 Introduction of H Language


 Data Types



 What Is an Expression

 Operations Are Aliases of Function Calls

 Evaluation Order of Multiple Operators



 "boolean" Data Type

 "integer" Data Type

 "string" Data Type

 "real" Data Type

 "array" Data Type

 Source Code Packages

 Classes and Objects

 Object Oriented Programming

 Inheritance - Object Attachments

 Encapsulation - Private Members


 PDF Printing Version