fn: :=
[contents]

Contents

Syntax

The syntax for := calls is:

f++:  
:=(type, definitions)

n++:  
@:=(type, definitions)

Description

The := function is used for defining variables, the first parameter specifies the type of variables being defined, the remainder of the parameters should be variable definitions.

Options

The following options are available for := calls:

option description
const definition of a constant
!exprtk do not register variable with ExprTk
layer="x" define variable at layer x
private definition of a private
scope+="x" add x to scopes variable can be accessed from
option description

f++ example

Examples of := being used with f++:

:=(int, a=10, 
        b=12)
:=(string, str="hello, world!")
:=(ofstream, ofs("input.txt"))

n++ example

Examples of := being used with n++:

@:=(int, a=10, 
         b=12)
@:=(string, str="hello, world!")
@:=(ofstream, ofs("input.txt"))