Constants

Gamma: Version 4.0
Prev | Chapter 3. Basic Data Types and Mechanisms | Next

# 3.5. Constants

A constant is any symbol that has been defined as such with the assignment operator `::=`. Note that since the check is made at run-time, the constant is protected, even if the symbol name is evaluated at run-time.

Example:

        Gamma> e ::= 2.17128128;
        2.17128128
        Gamma> e = 3;
        Assignment to constant symbol: e
        debug 1>

        (Type Ctrl - D to return to
        the Gamma prompt.)

        Gamma>

Prev | Home | Next
Lists and Arrays | Up | Operators and Expressions

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.