From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Damien Mattei Newsgroups: gmane.lisp.guile.devel Subject: new function Date: Sun, 19 Sep 2021 09:54:41 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bf8ee805cc547a27" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14081"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sun Sep 19 15:08:07 2021 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mRwYB-0003UQ-7y for guile-devel@m.gmane-mx.org; Sun, 19 Sep 2021 15:08:07 +0200 Original-Received: from localhost ([::1]:34026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRwY9-0001HR-7a for guile-devel@m.gmane-mx.org; Sun, 19 Sep 2021 09:08:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRrfF-0004F7-35 for guile-devel@gnu.org; Sun, 19 Sep 2021 03:55:05 -0400 Original-Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]:44744) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRrf3-0005iK-OE for guile-devel@gnu.org; Sun, 19 Sep 2021 03:55:04 -0400 Original-Received: by mail-io1-xd29.google.com with SMTP id y197so4256205iof.11 for ; Sun, 19 Sep 2021 00:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=ryXDml40sI5fWOEDAFr6FRq5bTf9AmzgkPkZlDrVOfU=; b=LpAce30vlL0aF4WuWQGQhsKhPEwcrvtJVVOITdBjyC1DaR+A2L7Zb68Ki+zUYFnrPl n8TmvhC3hjE5dhgxjq0Jq254UPcas0mJWbJhj7Rer8Y8zadgjvOts7IK9q9higFxzOXL KFXeTQ3BZy+5t9XMsvsLjgUZ8vXy/og4j0LwlHvDb/G5nK8QBNmdeaFBpMUOTHbyO9rF tViN5rYCm3oFSayyKhOGXXpz+Ho4HSWvOnzKnv3DsaRym+t9maDDDmvw8OnaV0g/iQPo bVzm7IS7aAY2T5D0pTaaMchXKn9GUzR0JiEn184lueEt5VM7qdqDiKOF4g1YvjcxlaNT w4SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ryXDml40sI5fWOEDAFr6FRq5bTf9AmzgkPkZlDrVOfU=; b=gzqKIeweIB2SDkzl8fG5XuvPwZf9lqcn8tg2vcHDcdRiJGfw8B/RW5MIIjbW3wFTkE EU6Te4v+0+eqtDY43xd076nZ4e3eqOmr2ZA1h2XJUzSbTwNl2dO2ybK7Gir91GD6FimJ XZY2nawCZq/2AiNnuZE9BgnLJPoeGL3YALOviIQ3AbCbpm/8Gu0577PeBVx2XbJTTZpm MWqlCXS2lkigXamYcqZ8oSfTAzgmCP23k/GnWMOy7Hi97rUa9bKA/BKICUUJLzsbJt8S Ovv0k3coqUp2IN3B3fjCNVkN3sX7TOWZ0AaSd6jJJ2TzHJGmzoLG7ZljiEiKbAr6GHaX MU/A== X-Gm-Message-State: AOAM533CE0+etiMUYfxwbuX/eLZJX55aDgre7J5k3X4yFIm4rkhzQw3t /w/qPq8sahBT/nTmuCsA7O1Uv+qxgXVL5px9sxeUSmB7bRA= X-Google-Smtp-Source: ABdhPJySX9d6mmm1KTzrt+YoWvhR3bMfuEJI2lUKTAupFgkXYkJmXO+4jr1Ss3VknJPuQZR1mWWqFXwvbi4s0MlpAfU= X-Received: by 2002:a6b:8e50:: with SMTP id q77mr14457082iod.96.1632038092244; Sun, 19 Sep 2021 00:54:52 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::d29; envelope-from=damien.mattei@gmail.com; helo=mail-io1-xd29.google.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 19 Sep 2021 09:07:46 -0400 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20863 Archived-At: --000000000000bf8ee805cc547a27 Content-Type: text/plain; charset="UTF-8" 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 --000000000000bf8ee805cc547a27 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
hel= lo,
i'm dev= eloping 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 des= perately 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 i= t is not possible because define can be used in an expression context.

Thank in advance for any help=
Damien
--000000000000bf8ee805cc547a27--