unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Rob Browning <rlb@defaultvalue.org>
Subject: Re: Scheme-defined smobs
Date: Mon, 03 Nov 2003 17:58:01 -0600	[thread overview]
Message-ID: <87u15l0zue.fsf@raven.i.defaultvalue.org> (raw)
In-Reply-To: <m38ymx9wr3.fsf@multivac.cwru.edu> (Paul Jarc's message of "Mon, 03 Nov 2003 12:39:38 -0500")

prj@po.cwru.edu (Paul Jarc) writes:

> ... which shows me the output of "ls -a".  So I can use Guile as a
> shell with a bit less typing.

Wow, that's really scary.

An alternative might be to define your own repl that allows you do
define items that should be handled specially, and pass everything
else to a normal eval, i.e. very roughly:

  (let ((next (read)))
    (if (special-value? next)
        (lookup-and-do-special-thing-for next)
        (print (eval next (current-module)))))

and then have a little function that lets you register the special
symbols.

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4


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


  reply	other threads:[~2003-11-03 23:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-03 17:39 Scheme-defined smobs Paul Jarc
2003-11-03 23:58 ` Rob Browning [this message]
2003-11-04  0:16   ` Paul Jarc
2003-11-05 17:13 ` Marius Vollmer
2003-11-06 16:25   ` Paul Jarc
2003-11-13 19:24     ` 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=87u15l0zue.fsf@raven.i.defaultvalue.org \
    --to=rlb@defaultvalue.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).