home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / lisp / 2325 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.2 KB

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