[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
continuation barriers
From: |
Linas Vepstas |
Subject: |
continuation barriers |
Date: |
Sun, 23 Aug 2009 15:19:40 -0500 |
I just tried continuations for the first time in my environment, and
promptly hit a continuation barrier. I think I understand why,
-- its how I'm mixing C and guile -- but don't see any solution.
I think what I want is a "continuation since the last time I
entered guile, and don't worry about C because there
aint none" .
i.e. I'd like something like this to work:
scm_c_eval_string(" ... (call/cc (lambda (k) (set! *myk* k))) ...");
... some_c_code(...);
scm_c_eval_string(" ... (*myk* 42) ...");
I think (I haven't yet tried) that the above can work if I wrap
the whole darn thing with scm_with_guile() .. but is there
some way of getting the above to run without a big wrap
of this kind?
--linas
- continuation barriers,
Linas Vepstas <=