unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Marius Vollmer <marius.vollmer@uni-dortmund.de>
Cc: guile-devel@gnu.org
Subject: Re: Value history
Date: 08 Aug 2002 19:46:19 +0200	[thread overview]
Message-ID: <ljadnxs0pg.fsf@burns.dt.e-technik.uni-dortmund.de> (raw)
In-Reply-To: <20020805031214.GA29032@nsx.internal.hewgill.net>

Greg Hewgill <greg@hewgill.com> writes:

> Below is a patch for the "Value history" idea. This diff is against
> the CVS head.

Excellent!  Thanks!

> If anybody has any suggestions for improvement, let me know. I get
> the feeling that the eval statement might not be the best way to do
> the global $<n> assignment, but it was the only way I could find to
> make it work.

Yes, eval is not the most direct way to do what you want.  You can
also use

    (module-define! (current-module) (string->symbol ...) result)

I think it is also important to have a way to switch the history off,
and to limit it to a maximum number of levels.  Otherwise, an
arbitrary amount of uncollectable garbage might built up without the
user being aware of it.

You can use

    (module-remove! (current-module)
      (module-local-variable (current-module) sym))

to undefine variables in the current module.  Might be worth to define
'module-undefine!'...

If you could make these changes, that would be great!

_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2002-08-08 17:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-05  3:12 Value history Greg Hewgill
2002-08-08 17:46 ` Marius Vollmer [this message]
2002-08-08 21:32   ` Neil Jerram
2002-08-08 23:14     ` Marius Vollmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ljadnxs0pg.fsf@burns.dt.e-technik.uni-dortmund.de \
    --to=marius.vollmer@uni-dortmund.de \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).