From: Damien Mattei <damien.mattei@gmail.com>
To: guile-user <guile-user@gnu.org>
Subject: inserting a file in a module?
Date: Thu, 5 Oct 2023 08:39:48 +0200 [thread overview]
Message-ID: <CADEOadcGGeVi_8spfB4hEeLqE5DT4OJgg7RJOxz6OS_SkFG5Zg@mail.gmail.com> (raw)
hello,
i have problem i do not understand when inserting a file in a module,
things i never done before:
(define-module (matrix)
#:use-module (oop goops)
#:use-module ((guile)
#:select (*)
#:prefix orig:)
#:export (<matrix>
matrix
matrix-v)
)
(define scheme-plus-path "/Users/mattei/Dropbox/git/Scheme-PLUS-for-Guile")
(include (string-append scheme-plus-path "/Scheme+.scm"))
...
i get this error:
scheme@(guile-user)> (use-modules (matrix))
;;; note: source file /usr/local/share/guile/site/3.0/matrix.scm
;;; newer than compiled
/Users/mattei/.cache/guile/ccache/3.0-LE-8-4.6/usr/local/share/guile/site/3.0/matrix.scm.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /usr/local/share/guile/site/3.0/matrix.scm
;;; WARNING: compilation of /usr/local/share/guile/site/3.0/matrix.scm failed:
;;; In procedure string-prefix?: Wrong type argument in position 2
(expecting string): (string-append scheme-plus-path "/Scheme+.scm")
While compiling expression:
In procedure string-prefix?: Wrong type argument in position 2
(expecting string): (string-append scheme-plus-path "/Scheme+.scm")
but it works if i replace the string-append by the string already appended :
(include "/Users/mattei/Dropbox/git/Scheme-PLUS-for-Guile/Scheme+.scm")
next reply other threads:[~2023-10-05 6:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-05 6:39 Damien Mattei [this message]
2023-10-05 7:34 ` inserting a file in a module? tomas
2023-10-05 9:12 ` Damien Mattei
2023-10-06 7:14 ` Damien Mattei
2023-10-06 7:52 ` tomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADEOadcGGeVi_8spfB4hEeLqE5DT4OJgg7RJOxz6OS_SkFG5Zg@mail.gmail.com \
--to=damien.mattei@gmail.com \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).