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: Restoration of Session Variables Date: Fri, 20 Oct 2006 21:49:00 +0100 Message-ID: <877iyuzpab.fsf@ossau.uklinux.net> References: <20061014210902.GB1317@alamut> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161383288 14598 80.91.229.2 (20 Oct 2006 22:28:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Oct 2006 22:28:08 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Oct 21 00:28:08 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gb2qU-0006RN-Ca for guile-user@m.gmane.org; Sat, 21 Oct 2006 00:28:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gb2qT-0004ZI-RC for guile-user@m.gmane.org; Fri, 20 Oct 2006 18:28:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gb1JK-0001OI-JJ for guile-user@gnu.org; Fri, 20 Oct 2006 16:49:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gb1JJ-0001Ml-OA for guile-user@gnu.org; Fri, 20 Oct 2006 16:49:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gb1JJ-0001M1-C9 for guile-user@gnu.org; Fri, 20 Oct 2006 16:49:45 -0400 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gb1JI-0005Ix-Tg for guile-user@gnu.org; Fri, 20 Oct 2006 16:49:45 -0400 Original-Received: from laruns (host217-43-46-97.range217-43.btcentralplus.com [217.43.46.97]) by mail3.uklinux.net (Postfix) with ESMTP id D972840A1F0; Fri, 20 Oct 2006 20:49:43 +0000 (UTC) Original-Received: from laruns (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id 1CC2D6F58C; Fri, 20 Oct 2006 21:49:00 +0100 (BST) Original-To: Volkan YAZICI In-Reply-To: <20061014210902.GB1317@alamut> (Volkan YAZICI's message of "Sun, 15 Oct 2006 00:09:03 +0300") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) 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:5616 Archived-At: Volkan YAZICI writes: > Hi, > > I'm executing seperate procedures in the same Guile session initialized > by scm_init_guile(). Just after initialization, some global definitions > get loaded. While executing supplied procedures sequentially, I want to > restrict their access to some variables. Namely I want to set some > definitions as read-only. Is this possible? > > I tried playing with fluids and dynamic states but couldn't figure out a > solution. I'd be very appreciated to hear any kind of suggestion. Not sure I completely understand. Can you give an example of one of the globals that you want to be read-only, and of an eval that would try - and should fail - to change it? Regards, Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user