unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* scm_internal_stack_catch
@ 2011-05-06 14:21 dsmich
  2011-07-01 10:29 ` scm_internal_stack_catch Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: dsmich @ 2011-05-06 14:21 UTC (permalink / raw)
  To: guile-devel

Howdy Guilers,

I've been slowly (very slowly!) debitrotting scwm.  The C code is pretty much there, as is most of the Scheme code, except for gtk+ interfaces.

There is currently a deprecation warning for scm_internal_stack_catch.  The warning says to talk to guile-devel.  So I'm talking.  ;^)  What should this be replaced with?

You can take a look at http://scwm.git.sourceforge.net/git/gitweb.cgi?p=scwm/scwm;a=summary

Or just check it out from git:
git clone git://scwm.git.sourceforge.net/gitroot/scwm/scwm

Thanks,
  -Dale




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

* Re: scm_internal_stack_catch
  2011-05-06 14:21 scm_internal_stack_catch dsmich
@ 2011-07-01 10:29 ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2011-07-01 10:29 UTC (permalink / raw)
  To: dsmich; +Cc: guile-devel

On Fri 06 May 2011 16:21, <dsmich@roadrunner.com> writes:

> I've been slowly (very slowly!) debitrotting scwm.

Cool!  I've been (very slowly!) catching up to the present with regards
to guile-devel.

> There is currently a deprecation warning for scm_internal_stack_catch.
> The warning says to talk to guile-devel.  So I'm talking.  ;^) What
> should this be replaced with?

Here's the deal.

  1) Internal_stack_catch uses the the-last-stack fluid, which Guile no
     longer has.

  2) It is also a "lazy catch", meaning that it unwinds the dynamic
     state to the catch, but doesn't unwind the stack.  Guile doesn't
     allow this any more.  This may or may not have repercussions for
     you.

Instead, in Guile 2.0, your best bet is to use
`call-with-error-handling'.  See "Pre-Unwind Debugging" in the manual,
for more.

Regards,

Andy
-- 
http://wingolog.org/



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

end of thread, other threads:[~2011-07-01 10:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-06 14:21 scm_internal_stack_catch dsmich
2011-07-01 10:29 ` scm_internal_stack_catch Andy Wingo

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