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: possible bug in export Date: Mon, 1 May 2023 07:33:46 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000051656b05fa9b2b38" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17422"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Mon May 01 07:34:28 2023 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 1ptMBA-0004Pc-D8 for guile-devel@m.gmane-mx.org; Mon, 01 May 2023 07:34:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptMAl-0001BL-5J; Mon, 01 May 2023 01:34:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptMAj-0001Ax-Gh for guile-devel@gnu.org; Mon, 01 May 2023 01:34:01 -0400 Original-Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptMAh-0004UR-Hw for guile-devel@gnu.org; Mon, 01 May 2023 01:34:00 -0400 Original-Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-50bc1612940so2369495a12.2 for ; Sun, 30 Apr 2023 22:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682919237; x=1685511237; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=UxiuW01tFHgM3tzHUbwB6tNuVZqAqRc5PYXQ/cE4yBY=; b=BxEbu2srHpC6gVF+VJKdkonkQs3kwi16wZfOP8q/JLa1iJJtOP8ZsXsdIqo5JMXs1H lMATzxcqWFdiAMbzNq4iINDZAYpe18NPcMPnz2SHMe84n8wOmA09p37dIJ68+bcyV6ua l2NdzRM6n6/FzjMf9n96ZXBp0NfScHZRpQqF3wmsigj4OaGZ2giDVFjwYjZZrv+PUP3m +8dCFT1x1ZQ3aSPxL3lnoeWqueJUIIJjz9rM9zuMl0e4hwqXw1N/RULzOb8XP9cu64lx JVJkNHLR17vbiAqeqcX2hdIywsOyqS/hZBMKJmksH4w3uAV9oxVHkk9cIVgcVA1L4uj7 51FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682919237; x=1685511237; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=UxiuW01tFHgM3tzHUbwB6tNuVZqAqRc5PYXQ/cE4yBY=; b=L99zu78PIu33vP1bxTvLyYLJpGXD6hWowrTANcRTEWObB7UeMHeFGjmiaqsZeWZ73D TyUVCeOlrr/kC5T4pAouWIgG4AXOyGsuiK6X4787HSZV2/xeefY8XsgTOD3gsJU4c109 rdDtmIIsRXXWhEXJFpE3Q2k4QlH7E/ZQED5krQpARUPUVdQH17Ho1ZBiRRYz6UYqgcin Uj4bNNJd7DbDXW19tc6JULns4XUN/icwcRI/SjcBKqYDHXHXCpzzC9lk4GkExa0+0LVW q+yGeA0BCcxSCl8mCslsN+TbR+JYNkgA2i1Rs2JEwvOLhDU3OCArH/vtGKpiBXL6aLSp IKng== X-Gm-Message-State: AC+VfDz6sCec0jGjGMG0q/9vsJFi6NAKm3bQ5ugv1qzpchyuvKHEY9/J 7+Nu+OnnHA6u30PSwvEft5LgF9+2C4ZbYBtojy5ZqHfIoCw= X-Google-Smtp-Source: ACHHUZ6nALsDm2etP7IlvEe8xw80yO7WazcDDr1disUYBzJL4eflK4KOIvL7iSRinvN5aYsS2AikZwKFzpva/Xlndmw= X-Received: by 2002:aa7:da94:0:b0:50b:c693:70ac with SMTP id q20-20020aa7da94000000b0050bc69370acmr1244207eds.2.1682919237181; Sun, 30 Apr 2023 22:33:57 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=damien.mattei@gmail.com; helo=mail-ed1-x533.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21809 Archived-At: --00000000000051656b05fa9b2b38 Content-Type: text/plain; charset="UTF-8" hello, i noticed that when defining a module and exporting a procedure not defined this does not cause an error in Guile ( at the opposite to Racket for example). example: (define-module (my_module) #:export (my_undefined_procedure) (include-from-path "file.scm")) in REPL: (use-modules (my_module)) ice-9/boot-9.scm:1685:16: In procedure raise-exception: Unbound variable: my_undefined_procedure Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> ,q regards, damien --00000000000051656b05fa9b2b38 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
hel= lo,
i noticed t= hat when defining a module and exporting=C2=A0 a procedure not defined this= does not cause an error in Guile ( at the opposite to Racket for example).=

example:
(define-module (my_module)
=C2=A0=C2=A0 #:exp= ort (my_undefined_procedure)

(include-from-path "file.scm"))

in REPL:
(use-modules (my_module))


ice-9/boot-9.scm:1685:16: In procedure raise-exception= :
Unbound variable: my_undefined_procedure

Entering a new prompt.= =C2=A0 Type `,bt' for a backtrace or `,q' to continue.
scheme@(g= uile-user) [1]> ,q

reg= ards,
damien

--00000000000051656b05fa9b2b38--