const

Top  Previous  Next

Scripts > Class elements and c++ instructions > Interpreted C++ instructions > const

 

Syntax

 

const <variable name> [ = <value> ] ;

 

<function name> ( const <type>*<variable name> ;)

 

<function name> const;

 

Description

 

Use the const modifier to make a variable value not modifiable.

Use the const modifier to assign an initial value to a variable that cannot be changed by the program. Any future assignments to a const result in a compiler error.

 



This page belongs to the TextTransformer Documentation

Home  Content  German