unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* inserting a file in a module?
@ 2023-10-05  6:39 Damien Mattei
  2023-10-05  7:34 ` tomas
  0 siblings, 1 reply; 5+ messages in thread
From: Damien Mattei @ 2023-10-05  6:39 UTC (permalink / raw)
  To: guile-user

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")



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-10-06  7:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-05  6:39 inserting a file in a module? Damien Mattei
2023-10-05  7:34 ` tomas
2023-10-05  9:12   ` Damien Mattei
2023-10-06  7:14   ` Damien Mattei
2023-10-06  7:52     ` tomas

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).