guile-user
[Top][All Lists]
Advanced

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

Re: Why doesn't gh_enter() return?


From: Marius Vollmer
Subject: Re: Why doesn't gh_enter() return?
Date: 12 May 2001 15:16:30 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102

Sam Tregar <address@hidden> writes:

> Maybe I can just longjmp back out of the function I pass to gh_enter()?
> Any predictions as to how much I would break by doing that?

You should not do that.  gh_enter does not return precisely so that it
knows where the bottom of the stack is.  When you jump back out of it,
you have violated that assumption and the garbage collector will get
confused.

You can use `scm_init_guile' however, which does what you want.



reply via email to

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