From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tomas@fabula.de Newsgroups: gmane.lisp.guile.devel Subject: Re: Smart variables, dumb variables Date: Wed, 14 Aug 2002 22:28:31 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <20020814202831.GA7443@www> References: <87y9bajzfp.fsf@zagadka.ping.de> <20020814080715.GA6068@www> <87fzxhteri.fsf@zagadka.ping.de> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029356178 2303 127.0.0.1 (14 Aug 2002 20:16:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 14 Aug 2002 20:16:18 +0000 (UTC) Cc: tomas@fabula.de, guile-devel@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17f4Yy-0000b1-00 for ; Wed, 14 Aug 2002 22:16:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17f4Zn-00052c-00; Wed, 14 Aug 2002 16:17:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17f4Yr-00051H-00 for guile-devel@gnu.org; Wed, 14 Aug 2002 16:16:09 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17f4Yp-000511-00 for guile-devel@gnu.org; Wed, 14 Aug 2002 16:16:08 -0400 Original-Received: from www.elogos.de ([212.18.192.92]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17f4Yp-00050w-00 for guile-devel@gnu.org; Wed, 14 Aug 2002 16:16:07 -0400 Original-Received: by www.elogos.de (Postfix, from userid 5002) id A860D1049BF; Wed, 14 Aug 2002 22:28:31 +0200 (CEST) Original-To: Marius Vollmer Content-Disposition: inline In-Reply-To: <87fzxhteri.fsf@zagadka.ping.de> User-Agent: Mutt/1.3.24i Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:1080 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1080 On Wed, Aug 14, 2002 at 09:35:29PM +0200, Marius Vollmer wrote: > tomas@fabula.de writes: > [...] > Read-onlyness should be a property of a variable that can be detected > by the compiler so we wouldn't want to bury it only in the setter, I'd > say. For some kind of static integrity checking? (the performance bit is already taken care of, at least if we assume that writing to a read-only variable doesn't happen very often ;) How about a special setter then (e.g. NULL or 'read-only). If someone changes this setter at run-time I guess they get what they deserve. The idea would be to spare the precious bit just to say that there's something special about the setter and to put more information ``down the pointer'', where there is more room (same for the getter). -- tomas ``if it sounds fuzzy it's because I'm fuzzy myself'' _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel