From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel Subject: Re: Scheme-defined smobs Date: Mon, 03 Nov 2003 17:58:01 -0600 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87u15l0zue.fsf@raven.i.defaultvalue.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1067904055 18520 80.91.224.253 (4 Nov 2003 00:00:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2003 00:00:55 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Nov 04 01:00:53 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AGocu-0007kp-00 for ; Tue, 04 Nov 2003 01:00:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AGobV-0007Xv-Ft for guile-devel@m.gmane.org; Mon, 03 Nov 2003 18:59:25 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AGoar-0006qR-CU for guile-devel@gnu.org; Mon, 03 Nov 2003 18:58:45 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AGoaG-0006Hu-Vs for guile-devel@gnu.org; Mon, 03 Nov 2003 18:58:40 -0500 Original-Received: from [66.93.216.237] (helo=defaultvalue.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AGoaD-0006AJ-Fa for guile-devel@gnu.org; Mon, 03 Nov 2003 18:58:05 -0500 Original-Received: from raven.i.defaultvalue.org (raven.i.defaultvalue.org [192.168.1.7]) by defaultvalue.org (Postfix) with ESMTP id 2D2FD3FED for ; Mon, 3 Nov 2003 17:58:02 -0600 (CST) Original-Received: by raven.i.defaultvalue.org (Postfix, from userid 1000) id E88E981086; Mon, 3 Nov 2003 17:58:01 -0600 (CST) Original-To: guile-devel@gnu.org In-Reply-To: (Paul Jarc's message of "Mon, 03 Nov 2003 12:39:38 -0500") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2971 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2971 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