[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: return macro
From: |
adriano |
Subject: |
Re: return macro |
Date: |
Fri, 01 Oct 2021 10:37:30 +0200 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: return macro,
adriano <=