From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: adriano Newsgroups: gmane.lisp.guile.user Subject: Re: return macro Date: Fri, 01 Oct 2021 10:37:30 +0200 Message-ID: <43ef1a454b97a0771b4b83cf454e44884325a081.camel@riseup.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27285"; mail-complaints-to="usenet@ciao.gmane.io" To: 'guile-user' Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Oct 01 10:37:57 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mWE3J-0006t0-Fi for guile-user@m.gmane-mx.org; Fri, 01 Oct 2021 10:37:57 +0200 Original-Received: from localhost ([::1]:35142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWE3H-0003I2-Df for guile-user@m.gmane-mx.org; Fri, 01 Oct 2021 04:37:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWE31-0003Hm-Rr for guile-user@gnu.org; Fri, 01 Oct 2021 04:37:40 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]:46278) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWE2z-0001CU-Oy for guile-user@gnu.org; Fri, 01 Oct 2021 04:37:39 -0400 Original-Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4HLNlf0VRYzDqmb for ; Fri, 1 Oct 2021 01:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1633077454; bh=pj+QhH2X5/yv356g2SVJVByH+9eI/BFH8M7fIsX3xow=; h=Subject:From:To:Date:In-Reply-To:References:From; b=YFszbdDkta6iF3KViRWdUbQDU1w4E/8Bowo/p73Ql8b/Nfg3eGt4JO9mGVNQRMpH3 WdTLngJXPIiQyRVLM1C0hW2p4NCWDFsPj/Mb5R6oybhOoDi8yj/duM3K2A3ZUi7f0W DH+y5i12m6FmZM3FoDIJGDeQ3cQOeU0DQUs07uLU= X-Riseup-User-ID: 7511FC104F8BEDDC61449C8CF0D135B2DEA698893D7DE9161B47FE2E1EFBCB9B Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4HLNld2pNXz1yBS for ; Fri, 1 Oct 2021 01:37:33 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=198.252.153.129; envelope-from=randomlooser@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17792 Archived-At: Il giorno gio, 30/09/2021 alle 20.55 +0000, dsmich@roadrunner.com ha scritto: > From: "adriano" > > >   (import (ice-9 control)) >  > >  >   (define (test x) >  >     (let/ec return >  >       (cond >  >         ((= x 3) (return 7)) >  >         ((= x 2) (return 5))))) > >  > What does this return (defined with let/ec) do ? > >  > In the orevious versions I could see the call to call/cc so I > could >  > (somewhat) figure out the "jump" imlpied by calling return > > > But in this last case, where is the return behaviour defined ? > > See https://www.gnu.org/software/guile/manual/guile.html#index- > let_002fec > > -Dale > thank you