5 . (with no adjacent letters or digits or _ or .)
11 The "old value" is essentially a global variable with identifier "."
12 which at top level when directly from a file or keyboard
13 is automatically assigned the saved value for a line
14 of statements when evaluation of that line is completed and this saved
15 value is not null. A line of statements is normally completed by a
16 '\n' not within a block bounded by braces or an expression bounded by
19 Disabling of saving by calling saveval(0) causes lines to return a
20 null value and . then becomes in effect a global variable whose
21 value may be changed by assignments and operations like ++ and --.
23 A null value may be assigned to . by . = null() or free(.).
33 ; . += 3; b = . + 4; null()
38 list (3 elements, 3 nonzero):
44 ; print pop(.), .[[1]]
56 ## Copyright (C) 1999 Landon Curt Noll
58 ## Calc is open software; you can redistribute it and/or modify it under
59 ## the terms of the version 2.1 of the GNU Lesser General Public License
60 ## as published by the Free Software Foundation.
62 ## Calc is distributed in the hope that it will be useful, but WITHOUT
63 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
64 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
65 ## Public License for more details.
67 ## A copy of version 2.1 of the GNU Lesser General Public License is
68 ## distributed with calc under the filename COPYING-LGPL. You should have
69 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
70 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
72 ## @(#) $Revision: 30.1 $
73 ## @(#) $Id: oldvalue,v 30.1 2007/03/16 11:10:42 chongo Exp $
74 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/oldvalue,v $
76 ## Under source code control: 1997/09/06 20:03:35
77 ## File existed as early as: 1997
79 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
80 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/