home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!news.u.washington.edu!uw-beaver!cornell!raman
- From: raman@cs.cornell.edu (T. V. Raman)
- Newsgroups: comp.lang.lisp
- Subject: Freezing a variable: how?
- Keywords: Freezing variables: Declaring as constant from here on after:
- Message-ID: <1992Aug28.155335.12562@cs.cornell.edu>
- Date: 28 Aug 92 15:53:35 GMT
- Article-I.D.: cs.1992Aug28.155335.12562
- Organization: Cornell Univ. CS Dept, Ithaca NY 14853
- Lines: 18
-
-
- In common lisp Lucid 4.1 I would like to have the following:
-
- After an initial setup phase, I would like to declare a variable as
- being unmodifiable. The constant declaration clearly will not work,
- since the setup functions do need to modify the variable. At present
- I am making sure that none of the other functions accidentally change
- this variable later on, but I would like lisp to take over this
- responsibility. Is there a standard way of doing this?
-
- Thanks,
-
- --Raman
- --
- T. V. Raman <raman@cs.cornell.edu>Tel: (607)255-9202 R 272-3649
- Office: 4116 Upson Hall,
- Department of Computer Science, Cornell University Ithaca NY 14853-6201
- Res: 226 Bryant Avenue Ithaca NY 14850
-