2 saveval - enable or disable saving of values
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
21 This saving of values is enabled or disabled by calling saveval(arg)
22 with an argument arg that tests as nonzero or zero,
24 Whether saving is enabled or disabled does not affect the operation of
50 ## Copyright (C) 1999 Landon Curt Noll
52 ## Calc is open software; you can redistribute it and/or modify it under
53 ## the terms of the version 2.1 of the GNU Lesser General Public License
54 ## as published by the Free Software Foundation.
56 ## Calc is distributed in the hope that it will be useful, but WITHOUT
57 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
58 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
59 ## Public License for more details.
61 ## A copy of version 2.1 of the GNU Lesser General Public License is
62 ## distributed with calc under the filename COPYING-LGPL. You should have
63 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
64 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
66 ## @(#) $Revision: 30.1 $
67 ## @(#) $Id: saveval,v 30.1 2007/03/16 11:10:42 chongo Exp $
68 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/saveval,v $
70 ## Under source code control: 1997/09/06 20:03:35
71 ## File existed as early as: 1997
73 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
74 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/