From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.lisp.guile.user Subject: Re: String syntax changed? Date: Tue, 17 Feb 2004 17:11:31 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: <1074473711.6727.312.camel@localhost> <87brnx9xx4.fsf@zagadka.ping.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1077056319 24013 80.91.224.253 (17 Feb 2004 22:18:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2004 22:18:39 +0000 (UTC) Cc: guile-user@gnu.org, Roland Orre Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Feb 17 23:18:29 2004 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 1AtDXx-0005US-00 for ; Tue, 17 Feb 2004 23:18:29 +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 1AtDXW-0001Lo-N0 for guile-user@m.gmane.org; Tue, 17 Feb 2004 17:18:02 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AtDSQ-0007To-EX for guile-user@gnu.org; Tue, 17 Feb 2004 17:12:46 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AtDRp-0006yL-53 for guile-user@gnu.org; Tue, 17 Feb 2004 17:12:40 -0500 Original-Received: from [129.22.104.46] (helo=mirapoint1.tis.cwru.edu) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AtDRo-0006jP-JN for guile-user@gnu.org; Tue, 17 Feb 2004 17:12:08 -0500 Original-Received: from multivac.cwru.edu (multivac.ITS.CWRU.Edu [129.22.114.26]) by mirapoint1.tis.cwru.edu (MOS 3.4.3-CR) with SMTP id ATA25558; Tue, 17 Feb 2004 17:11:31 -0500 (EST) Original-Received: (qmail 27862 invoked by uid 500); 17 Feb 2004 22:11:53 -0000 Original-To: Marius Vollmer In-Reply-To: <87brnx9xx4.fsf@zagadka.ping.de> (Marius Vollmer's message of "Tue, 17 Feb 2004 22:52:07 +0100") Mail-Copies-To: nobody Mail-Followup-To: Marius Vollmer , Roland Orre , guile-user@gnu.org Original-Lines: 26 User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2813 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2813 Marius Vollmer wrote: > prj@po.cwru.edu (Paul Jarc) writes: >> Roland Orre wrote: >>> (begin (display "$\\scriptstyle{P(A\|D)}$") (newline)) >> ... >>> ERROR: #:1:38: illegal character in escape sequence: #\| >>> ABORT: (read-error) >>> ERROR: Unbound variable: D >>> ABORT: (unbound-variable) >> >> Hm. With different string contents, this could have done something >> dangerous. I'm not sure what could have been done about it, though. > > We could gobble up the rest of the string after detecting an error. > Any takers? The problem is that after a syntax error, you don't really know where the end of the string was supposed to be. And even if you guess right on that, you're still left in the middle of (begin (display. Or did you mean the rest of the line? At least interactively, we could gobble up and discard all input until select()/poll() says there is no more, or read in non-blobking mode until EAGAIN. paul _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user