unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Strange error from %search-load-path via include-from-path when  parameter is not a literal string
@ 2011-10-17 18:20 Ian Hulin
  2011-10-17 21:36 ` Andy Wingo
  2011-10-17 21:54 ` Mark H Weaver
  0 siblings, 2 replies; 4+ messages in thread
From: Ian Hulin @ 2011-10-17 18:20 UTC (permalink / raw)
  To: guile-user

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




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

end of thread, other threads:[~2011-10-19 14:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-17 18:20 Strange error from %search-load-path via include-from-path when parameter is not a literal string Ian Hulin
2011-10-17 21:36 ` Andy Wingo
2011-10-19 14:43   ` Ian Hulin
2011-10-17 21:54 ` Mark H Weaver

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