From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.devel Subject: Re: unhandled constant? Date: Fri, 31 Jan 2020 16:16:46 +0100 Message-ID: References: <8d77f905-31e9-4d0b-973a-82be38360e07@www.fastmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="1975"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-devel@gnu.org To: =?UTF-8?Q?Linus_Bj=C3=B6rnstam?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Fri Jan 31 17:04:51 2020 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 1ixYmo-0000Sr-Kf for guile-devel@m.gmane-mx.org; Fri, 31 Jan 2020 17:04:50 +0100 Original-Received: from localhost ([::1]:55332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixYmn-0003ZK-Is for guile-devel@m.gmane-mx.org; Fri, 31 Jan 2020 11:04:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43478) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixY2b-00030n-2J for guile-devel@gnu.org; Fri, 31 Jan 2020 10:17:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixY2Y-0003Z7-TH for guile-devel@gnu.org; Fri, 31 Jan 2020 10:17:04 -0500 Original-Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]:38539) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixY2Y-0003Kz-4k for guile-devel@gnu.org; Fri, 31 Jan 2020 10:17:02 -0500 Original-Received: by mail-oi1-x233.google.com with SMTP id l9so3722125oii.5 for ; Fri, 31 Jan 2020 07:16:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=fwMC5eKO0FYsOX1+603YucqbhWip0OXNUkjS+uyG2uA=; b=EyxSlwdpVFOrtmQ5BogR5x6xVhfw3weSFiDZhYL4hWJ+O2fyC98so0oc8EMIvL0q65 L8ujHw8M3djxzvernajmnIo9VMz3tujyIqJMQXhulF8MnITpx56M5YlzITN3oTEc6InY npMNyw8dohzwuAt+8zFMZNFZr/4h3A0KB8XfnTXAjyo0YXGxz5ilHBpHAXZ2bDRIslh3 CChRVrkEFTOftapuEyikWX25DyHVG6d0ZFBE1yB/8v5bcTnG6wtDknz5IoNvoI+nvdvL 5QnEiu8vmaSBg3i3DJTXW+Dlby5VWYnzWyIY9aHiT0uCnzHZ0tMIdQwKJUSKu3U3yLjU +9ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fwMC5eKO0FYsOX1+603YucqbhWip0OXNUkjS+uyG2uA=; b=SWq67WZG1Q71eut6AaOW7U53WOYg9LQF9bbqb3NJYMpQJ15yKNg1jEMYZBGVoiDRjm vkCBAt3JN1UGcC8I0gD5mSk7lOB/B9oQuy142QQQvJZv1tv8HuHnbrxCB9w5fC3H+Hmb k8ktLn5H0Upp6985UUMH9sePyuOvEKBGf8swUn3zFh0sNBZRTmVgLVzEu6ucDlkXl8IA IRxpSewTz8gdyN5dNHi+fXwo9Tw0Zvqwp3xEqfMkfokLXai/UE/HNnDsVjD6zq9jCrcQ K/Pb8N/63jZuJAbQ8VwiRO1xAfMnlr9lreDfVmsgfa6UKe9XqvANNm363pj4YpzMo+8M nQNw== X-Gm-Message-State: APjAAAXaJwUmaj6uonCQBqPhGvXYT0LgT54/6vKbTqLoHvsd/P0qDjHu RmLnGFW42YyDlxNLONkxLRFpDjixF2NopemAqOfowso5pk9Mzg== X-Google-Smtp-Source: APXvYqzSeXrNuBsYtcPizYSywRdlA2ZuQngGSr4oxVR4KyP9wIkpeRp7RzfzLsWpCFGVo53mSBunz7ADtl57Kyi6pV4= X-Received: by 2002:aca:4d06:: with SMTP id a6mr5773977oib.27.1580483818250; Fri, 31 Jan 2020 07:16:58 -0800 (PST) In-Reply-To: <8d77f905-31e9-4d0b-973a-82be38360e07@www.fastmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::233 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:20358 Archived-At: On Fri, Jan 31, 2020 at 3:58 PM Linus Bj=C3=B6rnstam wrote: > > Guile1.8's macros are run-time macros: they are executed directly and not= transformed to output code that is then compiled. That is the reason why y= our code works: to newer guiles the (inner ...) is only available at expans= ion time. The macro output is trying to call code that does not exist at ru= ntime! > > For this to be working code the (inner ...) function needs to be availabl= e in the macro expansion. I didn't read through exactly what you are trying= to do, but try outputting a let: > > `(let ((inner (lambda (n v) (set ! ...)))) > (inner ,name ,value)) > > I doubt you can make the old code work in newer guiles, since I doubt any= scheme is a s lax about expansion time and macro time separation. Thanks for the explanation. This makes sense. Is it possible to attach doc strings to (define-syntax .. ) declarations, and if so, where do they go? --=20 Han-Wen Nienhuys - hanwenn@gmail.com - http://www.xs4all.nl/~hanwen