spec

Software for Diffraction

2.3.14.2. - Indirection Operator

The @ character is a special unary operator that provides indirection when used in front of a symbol name (available as of release 4.03.01). The behavior is similar to the C language * indirection operator. In spec, the @ operator allows reference to a variable whose name is the string value of another variable. For example:
1.FOURC> a = "b"; b = PI; print a, @a
b 3.14159 2.FOURC>