guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: return macro


From: dsmich
Subject: Re: return macro
Date: Thu, 30 Sep 2021 20:55:48 +0000

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 via email to

[Prev in Thread] Current Thread [Next in Thread]