From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: ruhl@4dv.net (Robert Uhl ) Newsgroups: gmane.lisp.guile.user Subject: Re: macro like "my" in Perl Date: 25 Jun 2002 17:16:50 -0600 Sender: guile-user-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1025047108 5996 127.0.0.1 (25 Jun 2002 23:18:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 25 Jun 2002 23:18:28 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17MzZs-0001Yb-00 for ; Wed, 26 Jun 2002 01:18:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17MzZc-0007dF-00; Tue, 25 Jun 2002 19:18:12 -0400 Original-Received: from mail.toddbradley.com ([66.7.157.8] helo=ntserver-4d18.4dvision.net) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17MzYK-0007ba-00 for ; Tue, 25 Jun 2002 19:16:52 -0400 Original-Received: from latakia.dyndns.org (unverified [66.7.170.6]) by ntserver-4d18.4dvision.net (Vircom SMTPRS 1.3.228) with ESMTP id for ; Tue, 25 Jun 2002 17:18:19 -0600 Original-Received: (from ruhl@localhost) by latakia.dyndns.org (8.11.6/8.8.7) id g5PNGoJ12918; Tue, 25 Jun 2002 17:16:50 -0600 X-Authentication-Warning: latakia.dyndns.org: ruhl set sender to ruhl@4dv.net using -f Original-To: guile-user@gnu.org In-Reply-To: Original-Lines: 19 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.user:643 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:643 prj@po.cwru.edu (Paul Jarc) writes: > > I'm looking for something like Perl's "my": something that adds a > binding to the current environment (like internal defines), gives an > error for multiple uses of the same symbol in a single scope (like > internal defines and let), and lets previously-defined variables be > used in values for later bindings (like let*). I expect I'll have to > wrap the whole scope with a special macro, but I'd like to avoid > having each definition wrap everything that comes after it. Is there > anything like this already out there? Sounds like yet another job for bound?. Essentially, one could simply write a little macro which checks if something is bound, erroring if so, otherwise defining it and then doing something else. -- Robert Uhl The power of Satan is as nothing before the might of the Lord, so don't go getting any ideas. --I Abyssinians 20:20 _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user