global_list
Declares one or more global list variables for use in the FRED program
Synopsis
global_list <list-variable1> <list-variable2> ...
Description
A global_list
statement declares one or more global list variables,
or just global lists. Lists must be defined within
a variables block, where they can also be set to an initial value.
A global list can be accessed or modified by any agent.
Options
<list-variable1> <list-variable2> ...
The set of names to define as global list variables, separated by a space.
Examples
The following declares two global list variables, g_list1
and g_list2
and
initializes the first list to contain the values list(1, 1, 2, 3, 5, 8, 13, 21)
.
variables {
global_list g_list1 g_list2
g_list1 = list(1, 1, 2, 3, 5, 8, 13, 21)
}