From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Hulin Newsgroups: gmane.lisp.guile.user 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 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1318875677 25984 80.91.229.12 (17 Oct 2011 18:21:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 Oct 2011 18:21:17 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Oct 17 20:21:13 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RFroE-00055w-Qv for guile-user@m.gmane.org; Mon, 17 Oct 2011 20:21:10 +0200 Original-Received: from localhost ([::1]:48570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFroE-0004GC-CQ for guile-user@m.gmane.org; Mon, 17 Oct 2011 14:21:10 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFroA-0004Fj-AQ for guile-user@gnu.org; Mon, 17 Oct 2011 14:21:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFro9-0001Zh-GN for guile-user@gnu.org; Mon, 17 Oct 2011 14:21:06 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:39241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFro9-0001Za-BP for guile-user@gnu.org; Mon, 17 Oct 2011 14:21:05 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RFro2-0004wk-NG for guile-user@gnu.org; Mon, 17 Oct 2011 20:20:58 +0200 Original-Received: from cpc13-rdng21-2-0-cust334.15-3.cable.virginmedia.com ([82.12.149.79]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Oct 2011 20:20:58 +0200 Original-Received: from ian by cpc13-rdng21-2-0-cust334.15-3.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Oct 2011 20:20:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpc13-rdng21-2-0-cust334.15-3.cable.virginmedia.com User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 X-Enigmail-Version: 1.3.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8897 Archived-At: 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