From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: Re: syncase code issue 1.8.8 -> 2.0.11 Date: Thu, 18 Sep 2014 05:35:04 -0700 Message-ID: <45C40687-D393-42A0-9DD8-4C4D1029B1F0@alumni.caltech.edu> References: <2097C007-9993-4AA1-A5F7-209A7DADD6CE@alumni.caltech.edu> <87k351ut62.fsf@taylan.uni.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1411043794 29990 80.91.229.3 (18 Sep 2014 12:36:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Sep 2014 12:36:34 +0000 (UTC) Cc: guile-user@gnu.org To: Taylan Ulrich Bayirli/Kammer Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Sep 18 14:36:24 2014 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XUawi-0006jo-Mi for guile-user@m.gmane.org; Thu, 18 Sep 2014 14:36:24 +0200 Original-Received: from localhost ([::1]:50400 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUawi-0006yu-45 for guile-user@m.gmane.org; Thu, 18 Sep 2014 08:36:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUavs-0006Lu-Kn for guile-user@gnu.org; Thu, 18 Sep 2014 08:35:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUavl-0002S2-2M for guile-user@gnu.org; Thu, 18 Sep 2014 08:35:32 -0400 Original-Received: from vms173019pub.verizon.net ([206.46.173.19]:36937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUavk-0002PL-VC for guile-user@gnu.org; Thu, 18 Sep 2014 08:35:25 -0400 Original-Received: from [192.168.2.127] ([unknown] [71.108.232.6]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0NC3000JRKAJNK60@vms173019.mailsrvcs.net> for guile-user@gnu.org; Thu, 18 Sep 2014 07:35:16 -0500 (CDT) In-reply-to: <87k351ut62.fsf@taylan.uni.cx> X-Mailer: Apple Mail (2.1878.6) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.46.173.19 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11529 Archived-At: On Sep 18, 2014, at 3:20 AM, Taylan Ulrich Bayirli/Kammer = wrote: >=20 > I see your code is doing things like >=20 > (format #t "~a\n" (define mt (make-tokiz "abc=3Ddef"))) >=20 > The argument to `format' there is necessarily an "expression" in the > grammar of Scheme. Definitions like (define ...) are not a valid type > of expression in Scheme. yes, just debug that didn't matter - please disregard > The only places you can use definitions are >=20 > - the top-level of a program/library >=20 > - the *beginning* of a "code body" like the body of a `lambda', the = body > of a `let', etc. can have a sequence of definitions; the first > non-definition expression terminates that sequence >=20 > - when you have a (begin ...) form in a position where a definition > would otherwise be allowed, then the body of this begin may also = start > with a series of definitions; again, the first non-definition > expression terminates this sequence This is syntax-case. Go check share/guile/2.0/boot-9/psyntax.scm for = similar code. Matt