[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scheme-defined smobs
From: |
Rob Browning |
Subject: |
Re: Scheme-defined smobs |
Date: |
Mon, 03 Nov 2003 17:58:01 -0600 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
address@hidden (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