From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Hartwig Newsgroups: gmane.lisp.guile.devel Subject: Re: Special variables to relax boxing Date: Sat, 23 Mar 2013 08:18:41 +0800 Message-ID: References: <3101921.Ei70kTLzB2@warperdoze> <12515493.61rmnodEK6@warperdoze> <2174121.eLPOcnxQL8@warperdoze> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1363997932 12776 80.91.229.3 (23 Mar 2013 00:18:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Mar 2013 00:18:52 +0000 (UTC) Cc: guile-devel , Mark H Weaver To: Stefan Israelsson Tampe Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Mar 23 01:19:17 2013 Return-path: Envelope-to: guile-devel@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 1UJCAz-0000aD-SL for guile-devel@m.gmane.org; Sat, 23 Mar 2013 01:19:13 +0100 Original-Received: from localhost ([::1]:44256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJCAc-0004YC-Cw for guile-devel@m.gmane.org; Fri, 22 Mar 2013 20:18:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJCAZ-0004Vz-VA for guile-devel@gnu.org; Fri, 22 Mar 2013 20:18:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJCAV-0000pw-EP for guile-devel@gnu.org; Fri, 22 Mar 2013 20:18:47 -0400 Original-Received: from mail-ie0-x229.google.com ([2607:f8b0:4001:c03::229]:35905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJCAV-0000ps-9V for guile-devel@gnu.org; Fri, 22 Mar 2013 20:18:43 -0400 Original-Received: by mail-ie0-f169.google.com with SMTP id qd14so4075707ieb.14 for ; Fri, 22 Mar 2013 17:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=0Qt4LFoJA7JbYCVvzyobWzd6GLqk0bwfiHxfiAJLrL8=; b=W3kHeOxd1fI/kUv9TE3lyP1tQDCZdmMc0H5M2+Sg5LlxE/IyYeRNrFYfO+C4bQhviT lgEaSmg0Fu6GXhdOwwr4g0newdmFAKc8RT3j8BwMEHvHEouBcCrB3fNjojdiFsagxfmh Ra2JrmZHlhYSKPIkhlR5ObBoBF630D6QmMzQ0gWU/IsKICvbI4JR7PUkhZ+BOtyKggUw Yqq++I9kVSkVXBhcNUqXhMSw7sdCPNzqnq2kuYFtkHZ+H3cYfFleDEVv0p0QSPnefmMG qfTtmZ8I35nVgmIBg16EdJuxrmcbW5QwX/zAMSdRAfSP5iHp/oYXNZpNnOCQdlclnYIt l/Lw== X-Received: by 10.50.195.134 with SMTP id ie6mr6137794igc.6.1363997922255; Fri, 22 Mar 2013 17:18:42 -0700 (PDT) Original-Received: by 10.64.26.168 with HTTP; Fri, 22 Mar 2013 17:18:41 -0700 (PDT) In-Reply-To: <2174121.eLPOcnxQL8@warperdoze> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::229 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15972 Archived-At: On 23 March 2013 06:33, Stefan Israelsson Tampe w= rote: > (define (f x) > (let ((s 0)) > (with-special-soft ((s 0)) > (let lp ((i 0)) > (cond > ((>=3D i 100) s) > ((=3D i 50) (abort-to-prompt 'tag) (lp (+ i 1))) > (else (set! s (+ s i)) (lp (+ i 1)))))))) Is this typical of your intended use case? Why can S not be part of the named-let and avoid the use of =E2=80=98set!=E2=80=99?