From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Neil Jerram" Newsgroups: gmane.lisp.guile.user Subject: Re: atexit in modules Date: Sun, 16 Nov 2008 00:27:11 +0000 Message-ID: <49dd78620811151627v3b34306if0c8e39022e83ad5@mail.gmail.com> References: <677173.17745.qm@web37908.mail.mud.yahoo.com> <87wsf7whp5.fsf@gnu.org> <112113.55870.qm@web37908.mail.mud.yahoo.com> <119596.13840.qm@web37907.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1226795248 22304 80.91.229.12 (16 Nov 2008 00:27:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Nov 2008 00:27:28 +0000 (UTC) Cc: guile-user@gnu.org To: "Mike Gran" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Nov 16 01:28:30 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L1VV8-00016J-5m for guile-user@m.gmane.org; Sun, 16 Nov 2008 01:28:30 +0100 Original-Received: from localhost ([127.0.0.1]:55881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1VTz-0008Qr-LA for guile-user@m.gmane.org; Sat, 15 Nov 2008 19:27:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L1VTu-0008Qc-PL for guile-user@gnu.org; Sat, 15 Nov 2008 19:27:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L1VTt-0008Q7-2H for guile-user@gnu.org; Sat, 15 Nov 2008 19:27:14 -0500 Original-Received: from [199.232.76.173] (port=37628 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1VTs-0008Q4-Ro for guile-user@gnu.org; Sat, 15 Nov 2008 19:27:12 -0500 Original-Received: from rv-out-0708.google.com ([209.85.198.251]:42787) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L1VTs-0005Rb-Ex for guile-user@gnu.org; Sat, 15 Nov 2008 19:27:12 -0500 Original-Received: by rv-out-0708.google.com with SMTP id k29so2219657rvb.6 for ; Sat, 15 Nov 2008 16:27:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=m3Q3RLX3pb301m+cXNotpsIc8hS8RD0F8rMkWFqV5sc=; b=HDLKbD/OLvEEHFavkXqPAsfVc/v0a3DoeY8sA7mSP/jRrj4QZiI/0HYKRFVKrdlpF1 PbbGpOMKCCCF9N97cGSi7e0O4mEyd5eAusSe2UxKPzTn6PLVvLyBeS+jrqqOqvX23gaw lG6xkkolkvoerA+rc0c1794WXZEvvCou3bCS0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=uOKyDZG7qs93M4ktRnA31jocYYCtsV7CO99joEJsdL1ItTaeRXrR/SMpl50R7moKox eWrzic3v/Mgtyj/mPngcJ7gO/dTTekgYF1aDgesrG8LvRXjKh88UA8VLwWhVuaPLEklm tSqQoqiL7wUZ7R2GFj9awfx5cYnpw3KOfWjrc= Original-Received: by 10.141.2.19 with SMTP id e19mr1392201rvi.291.1226795231511; Sat, 15 Nov 2008 16:27:11 -0800 (PST) Original-Received: by 10.140.142.15 with HTTP; Sat, 15 Nov 2008 16:27:11 -0800 (PST) In-Reply-To: <119596.13840.qm@web37907.mail.mud.yahoo.com> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6922 Archived-At: 2008/11/14 Mike Gran : > > So I'm back to the idea of creating a module-level variable that exists while the module is in memory, and then calling library_end() when that variable is GC'd. But I can make it more schemey by using guardians and after-gc-hook as you suggested. But are modules ever unloaded? I thought not. Neil