unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Neil Jerram <neil@ossau.uklinux.net>
Cc: Guile Users <guile-user@gnu.org>
Subject: Re: behaviour of scm_run_hook
Date: Sun, 04 Sep 2005 10:49:46 +0100	[thread overview]
Message-ID: <87d5npb1s5.fsf@ossau.uklinux.net> (raw)
In-Reply-To: <60845.24.150.125.164.1125784894.squirrel@www.math.mcmaster.ca> (alberj@math.mcmaster.ca's message of "Sat, 3 Sep 2005 18:01:34 -0400 (EDT)")

alberj@math.mcmaster.ca writes:

> Unfortunately, it didn't work.  I'm quite sure GC was not the problem, I
> checked using
>
> (add-hook! after-gc-hook (lambda () (display "Garbage
> collection\n")))

You mean that GC was not the problem because a GC never happened?
Fair enough, but you will still need the protection in future, of
course (unless your application is _very_ short lived :-)).

>
> and nothing was displayed.

OK, in that case can you show us the code which you use in C to run
the hook (which you say doesn't work) and the corresponding Scheme
code (which does work).

     Neil



_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


  parent reply	other threads:[~2005-09-04  9:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-02 20:17 behaviour of scm_run_hook alberj
2005-09-03 14:40 ` Neil Jerram
     [not found]   ` <63627.24.150.125.164.1125767053.squirrel@www.math.mcmaster.ca>
2005-09-03 19:53     ` Neil Jerram
     [not found]       ` <60845.24.150.125.164.1125784894.squirrel@www.math.mcmaster.ca>
2005-09-04  9:49         ` Neil Jerram [this message]
     [not found]           ` <62195.24.150.125.164.1125847306.squirrel@www.math.mcmaster.ca>
2005-09-04 16:54             ` Neil Jerram
     [not found]               ` <62537.24.150.125.164.1125854774.squirrel@www.math.mcmaster.ca>
2005-09-05 22:14                 ` Neil Jerram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d5npb1s5.fsf@ossau.uklinux.net \
    --to=neil@ossau.uklinux.net \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).