From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Re: Trouble trying to use some modules from the docs Date: Sat, 16 Jun 2018 20:41:44 +0200 Message-ID: <9221bd8c-9b3f-5834-810f-1f45b8c02dd8@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1529174406 18598 195.159.176.226 (16 Jun 2018 18:40:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2018 18:40:06 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jun 16 20:40:01 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUG7F-0004fz-Ow for guile-user@m.gmane.org; Sat, 16 Jun 2018 20:40:01 +0200 Original-Received: from localhost ([::1]:52475 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUG9N-00037b-34 for guile-user@m.gmane.org; Sat, 16 Jun 2018 14:42:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUG8z-00037L-1L for guile-user@gnu.org; Sat, 16 Jun 2018 14:41:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUG8x-0005M5-ND for guile-user@gnu.org; Sat, 16 Jun 2018 14:41:48 -0400 Original-Received: from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232]:40381) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUG8x-0005Jn-F6 for guile-user@gnu.org; Sat, 16 Jun 2018 14:41:47 -0400 Original-Received: by mail-wr0-x232.google.com with SMTP id l41-v6so12859784wre.7 for ; Sat, 16 Jun 2018 11:41:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=TnU6ismAGb0AV8Y1F9F77w64qDMGjIN1jBwxe03yKRY=; b=ICucMeC2fWD15RWa8ajOLnET/mcTiqUzykMMdXPHZE7VZP1SEEd3UeU5D0GLCLuhGh wslj7IkHrS1GBQyOqtE+ceGZjOFZr5tloXNunn1FJXPGgcY7Cu++Db/BSowzfgmvkEXW wIzqfVrP5WmhK4j8yRU/BDoM6oQs4YVknA9L0Z5RPGtItJvAZuz3jMoh/DtZO1D65o4C XEf7Lac52p6nokEmMW4OXN9mELwFu3DU98GT3B+CkLBcFvOPj9JGLwiKNIHKFpdDnd9F IAa9KGuXhUzP68jdBCFxEqPux1BWTd3zuKEfJfgh1aXwHpMhcY9lXxiN8/+4/x7vIVxB QYJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=TnU6ismAGb0AV8Y1F9F77w64qDMGjIN1jBwxe03yKRY=; b=UXrZL69iepX5o8C5hsZ12jARDxqFVHIKqfN9zen6FNqeESOFUarWreZTAc5gFa36B3 A+Yjxi3DlAD7jdTuOhPPq6Epowx8Lykwggq7EAkpU2TqUna0xHhiQ4WE83QXvZm41B7y bOW5i8NU+9rPOTDYOoNw5ObsMdaqKg5dtq0PHWYkDyuqsB+ECj14pV+QHQcTsUqJY/3W 4UQDaY//Vp1mt9A1cRxq2XNebnf193LAjNpzo4kJoXQrk24pete11hSwhMEqA+qgUoB7 kQ5446aAgCC2jqUZr8qBAWrybs/R7sO9m428qKHce9WG83oXo3TdLfaB3vfo7I8ayyH2 Ml7g== X-Gm-Message-State: APt69E3fEhmR+scoST7g8hz2Xr5Zc2jvYI9MAVLmrmgp83PcNuG/zTPe LJzLF4FAcCe+URlDwoYoO2F5UQ== X-Google-Smtp-Source: ADUXVKKeF9HjMbFBi0lUHLegC/DDFwzNSlBz+zWUlEG4CVOeaycT+nsi68WN04Y3AcUf8XTD6D09Fg== X-Received: by 2002:adf:dd03:: with SMTP id a3-v6mr5745597wrm.2.1529174506056; Sat, 16 Jun 2018 11:41:46 -0700 (PDT) Original-Received: from ?IPv6:2a02:8109:ad3f:ec78:9c12:be8e:54a7:7465? ([2a02:8109:ad3f:ec78:9c12:be8e:54a7:7465]) by smtp.googlemail.com with ESMTPSA id f18-v6sm15143745wro.1.2018.06.16.11.41.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Jun 2018 11:41:45 -0700 (PDT) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::232 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14622 Archived-At: On 16.06.2018 18:00, guile-user-request@gnu.org wrote: > Message: 3 > Date: Sat, 16 Jun 2018 06:36:46 -0700 > From: Matt Wette > To: guile-user@gnu.org > Subject: Re: Trouble trying to use some modules from the docs (Matt > Wette) > Message-ID: > Content-Type: text/plain; charset=utf-8; format=flowed > > > On 06/16/2018 02:35 AM, Zelphir Kaltstahl wrote: >> Hello, >> >> I have managed to get another case of a binding not being available >> according to the Guile REPL, this time I have the code and way to >> reproduce the issue. >> ;; ===== HELPERS MODULE (networking-lib/helpers.scm) ===== >> (use-modules (rnrs bytevectors)) >> >> (define-module (networking-lib helpers) >> ? #:export (display-byte-vector)) >> > With above code, bytevector import is NOT in the context of your > module.? Try > > (define-module (networking-lib helpers) > ? #:export (display-byte-vector)) > > (use-modules (rnrs bytevectors)) > > > OR > > > (define-module (networking-lib helpers) > ? #:export (display-byte-vector) > ? #:use-module (rnrs bytevectors)) Thank you Matt, that worked. Somehow I assumed, that it would "magically" make the used modules also available in the code, which uses the helpers module. Now I can have less/no code duplication : ) I have now changed the code and I have it here: https://gitlab.com/zelphir-kaltstahl-projects/guile-scheme-tutorials-and-examples/tree/dev/network-programming