failed attempts to intercept copy command when the cursor is in the empty text field...
[LeanCalc.git] / help / saveval
1 NAME
2     saveval - enable or disable saving of values
3
4 SYNOPSIS
5     saveval(arg)
6
7 TYPES
8     arg         any
9
10     return      null value
11
12 DESCRIPTION
13     When evaluation of a line of statements at top level starts, a
14     "saved value" for that line is assigned the null value.  When saving
15     is enabled (the initial state) and a statement being evaluated is an
16     expression or a return statement, the value returned by that expression
17     or statement replaces the current saved value; on completion of
18     evaluation of the line, the saved value, if it is not null, updates
19     the "oldvalue".
20
21     This saving of values is enabled or disabled by calling saveval(arg)
22     with an argument arg that tests as nonzero or zero,
23
24     Whether saving is enabled or disabled does not affect the operation of
25     eval(str).
26
27 EXAMPLE
28     > saveval(1);
29     > a = 27;
30     .
31             27
32     > saveval(0);
33     > a = 45
34     .
35             27
36     > saveval(1);
37     > a = 63
38     .
39             63
40
41 LIMITS
42     none
43
44 LINK LIBRARY
45     none
46
47 SEE ALSO
48     oldvalue, eval
49