TinyMUX

Letq()

Functions

Description

FUNCTION: letq(<name1>, <value1>[, <name2>, <value2>, …], <body>)

Sets scoped temporary registers and evaluates the body expression. The function always takes an odd number of arguments: pairs of register names and values, followed by a body expression.

Register names may be a single character (0-9, A-Z) or a longer alphanumeric string. All registers are restored to their previous values after the body is evaluated.

Examples

> say letq(a, hello, %qa)

You say, “hello”

> say letq(x, 5, y, 3, add(%qx,%qy))

You say, “8”

localize(), setq(), setr(), r()