[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: email@example.com
- Subject: Re: dumplisp
- From: Todd.Kaufmann@NL.CS.CMU.EDU
- Date: Mon, 04 Feb 91 14:09:35 EST
- In-reply-to: Your message of Mon, 04 Feb 91 10:22:45 -0600. <9102041622.AA22007@aristotle.ils.nwu.edu>
- Reply-to: todd.kaufmann@NL.CS.CMU.EDU
> >I imagine it would be easy to explicitly code this behavior into
> >the functions which you add to *RESTORE-LISP-FUNCTIONS*.
> But what could the test be? Any global var that is set would be STORED set
> in the image, hence re-starting the image would not work because the flag
I thought the answer was so obvious I didn't respond... here's an example:
(defvar *dumped-lisp-time* (get-universal-time))
(defun conditional-lisp-restore-fns ()
(unless (and (< (- (get-universal-time) *dumped-lisp-time*)
3600) ;; less than an hour old..
(not (y-or-n-p "Pretty fresh lisp. Call restore-fns anyway?")))
Assuming the time is set correctly on the machine.
The window could be made smaller, and you could also test for time zone,
"current" time before dumped time, etc.
- Re: dumplisp
- From: firstname.lastname@example.org (Richard Lynch)