From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: dv.praveen@skyworksinc.com Newsgroups: gmane.lisp.guile.user Subject: Re: GC ?? Date: Wed, 3 Dec 2003 12:50:15 +0530 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1070436354 19481 80.91.224.253 (3 Dec 2003 07:25:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2003 07:25:54 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Dec 03 08:25:52 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ARROR-0001PJ-00 for ; Wed, 03 Dec 2003 08:25:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARSLj-0000NQ-FU for guile-user@m.gmane.org; Wed, 03 Dec 2003 03:27:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ARSJr-0000M5-Oe for guile-user@gnu.org; Wed, 03 Dec 2003 03:25:11 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ARSJK-0000CU-AQ for guile-user@gnu.org; Wed, 03 Dec 2003 03:25:09 -0500 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1ARSJJ-00008k-EY for guile-user@gnu.org; Wed, 03 Dec 2003 03:24:37 -0500 Original-Received: from [198.62.9.251] (helo=smtp1.urprovider.com) by mx20.gnu.org with esmtp (Exim 4.24) id 1ARRJJ-0008Ng-Bl for guile-user@gnu.org; Wed, 03 Dec 2003 02:20:33 -0500 Original-Received: from noiskydm1.ad.skynet (noiskydm1.noida.skyworksinc.com. [10.16.236.13]) by smtp1.urprovider.com (8.12.9+Sun/8.12.2) with ESMTP id hB37KUv7021981 for ; Tue, 2 Dec 2003 23:20:31 -0800 (PST) Original-To: e9926584@student.tuwien.ac.at, guile-user@gnu.org X-Mailer: Lotus Notes Release 5.0.11 July 24, 2002 X-MIMETrack: Serialize by Router on NOISKYDM1/Server/Skyworks(Release 5.0.12 |February 13, 2003) at 12/03/2003 12:50:18 PM, Serialize complete at 12/03/2003 12:50:18 PM X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2433 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2433 hi Andreas Rottmann, Thank you very much for the reply. It works. :) This function was not covered in the documentation and I missed it. My question is still unasnwered. Shouldn't the garbage collector attend all the globals and the recurse on the internal scm objects during the trace operation? regards, Praveen Andreas Rottmann 02/12/2003 08:02 PM To: D.V. Praveen/Intl/Skyworks@Skymail cc: guile-user@gnu.org@SMTP@Exchange Subject: Re: GC ?? dv.praveen@skyworksinc.com writes: > hi, > I am using guile 1.6.0. and programming in C. > > I am using scm_boot_guile and scm_shell in the function > I pass to scm_boot_guile. All the SCM objects that are > created, say using 'scm_make_string', 'scm_make_vector' > etc, and assigned to globals don't seem to exist after > call to scm_shell is made. My code looks something like > this.. > > #include > static SCM vector; > static SCM > retVec() > { > return vector; > } > static void > CreateVector() > { > vector = scm_make_vector(SCM_MAKINUM(2), SCM_EOL); > } use 'vector = scm_permanent_object (scm_make_vector(...' Regards, Andy -- Andreas Rottmann _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user