unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: adriano <randomlooser@riseup.net>
To: 'guile-user' <guile-user@gnu.org>
Subject: Re: return macro
Date: Fri, 01 Oct 2021 10:37:30 +0200	[thread overview]
Message-ID: <43ef1a454b97a0771b4b83cf454e44884325a081.camel@riseup.net> (raw)
In-Reply-To: <c9423bac0bdd255d7605b4b833f7f7e848b2a731@webmail>

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



  reply	other threads:[~2021-10-01  8:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-30 20:55 return macro dsmich
2021-10-01  8:37 ` adriano [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-06-27 23:10 Damien Mattei
2021-06-28  1:15 ` Taylan Kammer
2021-06-28  8:53   ` Damien Mattei
2021-09-30  3:37   ` adriano
2021-09-30  8:46     ` Damien Mattei
2021-09-30  9:18       ` Stefan Israelsson Tampe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43ef1a454b97a0771b4b83cf454e44884325a081.camel@riseup.net \
    --to=randomlooser@riseup.net \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).