[Top][All Lists]

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

Re: Question about an error with ports

From: Olivier Dion
Subject: Re: Question about an error with ports
Date: Fri, 11 Mar 2022 12:47:26 -0500

On Fri, 11 Mar 2022, Chris Vine <> wrote:
> On Fri, 11 Mar 2022 09:58:59 -0500
> Olivier Dion <> wrote:
>> I'm not sure this is related to the functions themself but instead the
>> underlying filedescriptor opened iwth ON_NONBLOCK?
> The problem I am referring to is different: it is that delimited
> continuations cannot capture C code and ports are written in C.
> Suspendable specializations, written in pure scheme, of some of
> guile's i/o procedures are therefore provided in
> modules/ice-9/suspendable-ports.scm, which is a file worth reading on
> its own account, and which are brought into effect (by suppressing the
> C-based equivalents) by applying the install-suspendable-ports!
> procedure.  If your i/o steps out of this set of primitives (see in
> particular the port-bindings variable in that file) then it is not
> suspendable.

Oh okay!  I understand now!

Olivier Dion

reply via email to

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