From: Ian Hulin <ian@hulin.org.uk>
To: guile-user@gnu.org
Subject: Strange error from %search-load-path via include-from-path when parameter is not a literal string
Date: Mon, 17 Oct 2011 19:20:45 +0100 [thread overview]
Message-ID: <j7hrlt$p39$1@dough.gmane.org> (raw)
Hi,
I'm trying to write a V2/V1 compatible function like the following:
(define (ly:include the-file)
(if (string>? (version) "1.9.10")
(include-from-path the-file)
(load-from-path the-file)))
I get
ERROR in procedure %search-load-path: Wrong type to apply in position
1 (expecting string): the-file.
Bug or user error?
(include-from-path) also gives similar errors at the REPL when the
filename argument is not a literal string.
Guile Version is 2.0.2
Cheers,
Ian Hulin
next reply other threads:[~2011-10-17 18:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-17 18:20 Ian Hulin [this message]
2011-10-17 21:36 ` Strange error from %search-load-path via include-from-path when parameter is not a literal string Andy Wingo
2011-10-19 14:43 ` Ian Hulin
2011-10-17 21:54 ` Mark H Weaver
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='j7hrlt$p39$1@dough.gmane.org' \
--to=ian@hulin.org.uk \
--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).