unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* continuation barriers
@ 2009-08-23 20:19 Linas Vepstas
  2009-08-26 21:24 ` Neil Jerram
  0 siblings, 1 reply; 4+ messages in thread
From: Linas Vepstas @ 2009-08-23 20:19 UTC (permalink / raw)
  To: Guile User

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




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

end of thread, other threads:[~2009-08-28 21:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-23 20:19 continuation barriers Linas Vepstas
2009-08-26 21:24 ` Neil Jerram
2009-08-28 15:41   ` Linas Vepstas
2009-08-28 21:42   ` Linas Vepstas

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