focus expression text field at startup -> version 1.2
[LeanCalc.git] / help / freestatics
1 NAME
2     freestatics - free memory used for static variables
3
4 SYNOPSIS
5     freestatics()
6
7 TYPES
8
9     return      null value
10
11 DESCRIPTION
12     This function frees the memory used for the values of all unscoped
13     static variables by in effect assigning null values to them.  As this
14     will usually have significant effects of any functions in whose
15     definitions these variables have been used, it is primarily intended
16     for use when these functions are being undefined or redefined..
17
18 EXAMPLE
19     > static a = 5
20     > define f(x) = a++ * x;
21     f() defined
22     > global a
23     > f(1)
24             5
25     > show statics
26
27     Name    Scopes    Type
28     ----    ------    -----
29     a         1  0    real = 6
30
31     Number: 1
32     > freestatics()
33     > f(1)
34             Error 10005
35     > strerror(.)
36             "Bad arguments for *"
37
38 LIMITS
39     none
40
41 LINK LIBRARY
42     none
43
44 SEE ALSO
45     free, freeglobals, freeredc
46