unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: ruhl@4dv.net (Robert Uhl <ruhl@4dv.net>)
Subject: Re: macro like "my" in Perl
Date: 25 Jun 2002 17:16:50 -0600	[thread overview]
Message-ID: <m3k7ont0d9.fsf@latakia.dyndns.org> (raw)
In-Reply-To: <m3lm933ssd.fsf@multivac.cwru.edu>

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 <ruhl@4dv.net>
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


  reply	other threads:[~2002-06-25 23:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-25 22:19 macro like "my" in Perl Paul Jarc
2002-06-25 23:16 ` Robert Uhl <ruhl@4dv.net> [this message]
2002-06-26  2:25 ` Alex Shinn
2002-06-26 13:15   ` Ken Anderson
2002-06-26 14:45     ` Lynn Winebarger
2002-07-02 15:34       ` Ken Anderson
2002-06-26 14:44   ` Lynn Winebarger
2002-06-27  1:28     ` Alex Shinn
2002-07-12 20:43 ` Paul Jarc
2002-07-13  0:09   ` Neil Jerram
2002-07-13 20:48     ` Paul Jarc
2002-07-16 20:49       ` Neil Jerram
2002-07-16 21:05         ` Paul Jarc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3k7ont0d9.fsf@latakia.dyndns.org \
    --to=ruhl@4dv.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).