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 20:17:28 +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="64501"; 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 20:17:53 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 1ixbnd-000GkX-SZ for guile-devel@m.gmane-mx.org; Fri, 31 Jan 2020 20:17:53 +0100 Original-Received: from localhost ([::1]:58358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixbnc-0004Eg-Rm for guile-devel@m.gmane-mx.org; Fri, 31 Jan 2020 14:17:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49686) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixbnS-0004EV-JG for guile-devel@gnu.org; Fri, 31 Jan 2020 14:17:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixbnR-0005u8-Cj for guile-devel@gnu.org; Fri, 31 Jan 2020 14:17:42 -0500 Original-Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]:43507) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixbnR-0005sr-6B for guile-devel@gnu.org; Fri, 31 Jan 2020 14:17:41 -0500 Original-Received: by mail-oi1-x232.google.com with SMTP id p125so8321103oif.10 for ; Fri, 31 Jan 2020 11:17:41 -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=CEjNAFy2xD0sFJMYUTqQOK1HJkxgkuPjUlaj/7aB7+Q=; b=d0uqo59Mf7aoHTE3twsg0EYysY/SjS+23Dw00EObPdVP1/yUCR2ioEpVdTWpmP0oA0 9UiOz3IRetEacIxUI+d40fEfbMMC+qS237IVMrK3WHSNcA9CbFfAlTYNPTyB5b/ws8Xi qawzmBMcp5BDY6cp+rPp+tWtFNDMB+aUCNpRIDu0Fa0xvEzBGx72XbpCre04/M+iykEe pcVGgfh3kcwd8ntPyre294O4pSH1UF/8Qe4zc44B0t5M7p8WGNuYu+WyQTVb7fJ8JSVg K2tj2hm3oE2Qc+fE1L7JtXUco0ViDNTZ9iCWGeOrG5Ud/vikjlxXnzSLpTbjlKt/V+m3 0BBA== 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=CEjNAFy2xD0sFJMYUTqQOK1HJkxgkuPjUlaj/7aB7+Q=; b=CO45b9EOHkrJDUcCGONfhj1FmQXfMhv+HfSIbbK5SXNeFXLPe/zM7IOQd9ObQPhgYX /i2RRO/5K+NNlZfrpnlXg+0RYEG1QudGPW+oeZmwCWG7FZ2r5KCAsQEwoSKm3kL5t9cg j8vxqzYs56ELmnNxLr6VOK9fjBSdJ4U7VTUziXMh16G5zkKmyhFtaHqP9gROD1vF+J0w 1bacjfswyrB4MZiUH42j6t38h9nCecDvYr8LciojxMJxmHQhdKn0ZCi+fDB7rOekTBHM pw7I3no6rSEwuzCrtWAWsMrClEdy4fMMKAgYIFGxvwUQUC+F6Em230PSBY+45zCfofzv 2TlQ== X-Gm-Message-State: APjAAAVMrxu2ALJsMIlXx7HcGfIG/JheSJYo9waPvIBycLX0am5HJ95U KmQjoUuh1CaDSdMLGOwMxJd40xf+qyu9NjElZOeXMFii3YwCdQ== X-Google-Smtp-Source: APXvYqwhMYSBLGMXYjVzkUBpe9imWhAFVMpA9BwYWJoMQCZ3g2tSjLTUQlTdqdCmNeptueICZ0M9mdTsiEVOzYdLM5I= X-Received: by 2002:a05:6808:b18:: with SMTP id s24mr7190178oij.31.1580498260209; Fri, 31 Jan 2020 11:17:40 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::232 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:20361 Archived-At: On Fri, Jan 31, 2020 at 7:20 PM Linus Bj=C3=B6rnstam wrote: > I don't really understand your question. With defmacro and syntax-case yo= u can run arbitrary code. If you just output code that does module-define! = that won't be run until runtime, and thus you cannot depend on the result o= f that module-define! during expansion. You can however wrap it in an eval-= when to solve that issue. That allows you to specify when code gets run. Wi= th module-define! I personally find it all a bit icky, but I usually stay a= s far away from phasing as I can :) eval-when looks like it might be a solution to the puzzle , but honestly, the doc at https://www.gnu.org/software/guile/manual/html_node/Eval-When.html has me mystified. When I run the example through guile 2.2 and display *compilation-date*, I get a different answer each time. Shouldn't it be a fixed timestamp (of when the compile happened?) [hanwen@localhost lilypond]$ guile2.2 e.scm ;;; note: source file /home/hanwen/vc/lilypond/e.scm ;;; newer than compiled /home/hanwen/.cache/guile/ccache/2.2-LE-8-3.A/home/hanwen/vc/lilypond/e.scm= .go ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /home/hanwen/vc/lilypond/e.scm ;;; compiled /home/hanwen/.cache/guile/ccache/2.2-LE-8-3.A/home/hanwen/vc/l= ilypond/e.scm.go Fri Jan 31 20:15:57+0100 2020 [hanwen@localhost lilypond]$ guile2.2 e.scm Fri Jan 31 20:15:58+0100 2020 [hanwen@localhost lilypond]$ guile2.2 e.scm Fri Jan 31 20:16:00+0100 2020 --=20 Han-Wen Nienhuys - hanwenn@gmail.com - http://www.xs4all.nl/~hanwen