unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: dsmich@roadrunner.com
To: "'adriano'" <randomlooser@riseup.net>
Cc: 'guile-user' <guile-user@gnu.org>
Subject: Re: return macro
Date: Thu, 30 Sep 2021 20:55:48 +0000	[thread overview]
Message-ID: <c9423bac0bdd255d7605b4b833f7f7e848b2a731@webmail> (raw)

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




             reply	other threads:[~2021-09-30 20:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-30 20:55 dsmich [this message]
2021-10-01  8:37 ` return macro adriano
  -- 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=c9423bac0bdd255d7605b4b833f7f7e848b2a731@webmail \
    --to=dsmich@roadrunner.com \
    --cc=guile-user@gnu.org \
    --cc=randomlooser@riseup.net \
    /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).