unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* A modest Scheme poem ...
@ 2022-04-16 16:49 Jean Abou Samra
  2022-04-17  2:39 ` Taylan Kammer
  0 siblings, 1 reply; 4+ messages in thread
From: Jean Abou Samra @ 2022-04-16 16:49 UTC (permalink / raw)
  To: guile-user

(let ((be values))
   (when values
         (yield)
         *unspecified*)
   (if values
       (do ()
         (not
          (values be quit)))))




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: A modest Scheme poem ...
  2022-04-16 16:49 A modest Scheme poem Jean Abou Samra
@ 2022-04-17  2:39 ` Taylan Kammer
  2022-04-17  4:34   ` Nala Ginrut
  0 siblings, 1 reply; 4+ messages in thread
From: Taylan Kammer @ 2022-04-17  2:39 UTC (permalink / raw)
  To: guile-user

On 16.04.2022 18:49, Jean Abou Samra wrote:
> (let ((be values))
>   (when values
>         (yield)
>         *unspecified*)
>   (if values
>       (do ()
>         (not
>          (values be quit)))))
> 
> 

Could not execute.
Variable 'yield' unbound.
A missing import?

;-)


(it's a haiku)

-- 
Taylan



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: A modest Scheme poem ...
  2022-04-17  2:39 ` Taylan Kammer
@ 2022-04-17  4:34   ` Nala Ginrut
  0 siblings, 0 replies; 4+ messages in thread
From: Nala Ginrut @ 2022-04-17  4:34 UTC (permalink / raw)
  To: Taylan Kammer; +Cc: Guile User

You may use abort-to-prompt to implement yield ;-)

On Sun, Apr 17, 2022, 10:40 Taylan Kammer <taylan.kammer@gmail.com> wrote:

> On 16.04.2022 18:49, Jean Abou Samra wrote:
> > (let ((be values))
> >   (when values
> >         (yield)
> >         *unspecified*)
> >   (if values
> >       (do ()
> >         (not
> >          (values be quit)))))
> >
> >
>
> Could not execute.
> Variable 'yield' unbound.
> A missing import?
>
> ;-)
>
>
> (it's a haiku)
>
> --
> Taylan
>
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: A modest Scheme poem ...
@ 2022-04-18 22:13 Jean Abou Samra
  0 siblings, 0 replies; 4+ messages in thread
From: Jean Abou Samra @ 2022-04-18 22:13 UTC (permalink / raw)
  To: guile-user

> Could not execute.
> Variable 'yield' unbound.
> A missing import?


It would appear that the (ice-9 threads) module is loaded by default in 
the REPL, even though it is not in scripts.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-18 22:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-16 16:49 A modest Scheme poem Jean Abou Samra
2022-04-17  2:39 ` Taylan Kammer
2022-04-17  4:34   ` Nala Ginrut
  -- strict thread matches above, loose matches on Subject: below --
2022-04-18 22:13 Jean Abou Samra

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).