From: Damien Mattei <damien.mattei@gmail.com>
To: guile-user <guile-user@gnu.org>
Cc: Jean-Paul Roy <jean-paul.roy@unice.fr>
Subject: Fwd: new function
Date: Sun, 19 Sep 2021 11:18:23 +0200 [thread overview]
Message-ID: <CADEOadetHC4aeA9m+yZ_jO9+T96tUyyA7cNXN1GozvYStADp3g@mail.gmail.com> (raw)
In-Reply-To: <CADEOadfF+rR=fW0fS-PkQkDN8EHFB1sJnkeePMJyc23m9shLgA@mail.gmail.com>
---------- Forwarded message ---------
From: Damien Mattei <damien.mattei@gmail.com>
Date: Sun, Sep 19, 2021 at 9:54 AM
Subject: new function
To: <guile-devel@gnu.org>
hello,
i'm developing an extension to Scheme
and i need a procedure or macro that define a variable only if it is not
bind and if it is just set! it.
I can not do it in Guile or any Scheme,and i'm desperately searching a way
to do that. I finally conclude that it can be done only by adding it in the
language.
Can someone include a such function in Guile next release?
i know guile have a predicate defined? to test binfing of a vairable but
writing a macro with it is not possible because define can be used in an
expression context.
Thank in advance for any help
Damien
next parent reply other threads:[~2021-09-19 9:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CADEOadfF+rR=fW0fS-PkQkDN8EHFB1sJnkeePMJyc23m9shLgA@mail.gmail.com>
2021-09-19 9:18 ` Damien Mattei [this message]
2021-09-19 10:38 ` Fwd: new function Maxime Devos
2021-09-19 14:45 ` Matt Wette
2021-09-19 14:56 ` Maxime Devos
2021-09-21 13:04 ` Damien Mattei
2021-09-21 19:03 ` Maxime Devos
2021-09-22 7:52 ` Damien Mattei
2021-09-22 18:03 ` Maxime Devos
2021-09-22 19:12 ` Taylan Kammer
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=CADEOadetHC4aeA9m+yZ_jO9+T96tUyyA7cNXN1GozvYStADp3g@mail.gmail.com \
--to=damien.mattei@gmail.com \
--cc=guile-user@gnu.org \
--cc=jean-paul.roy@unice.fr \
/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).