From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.devel Subject: Re: include can't work Date: Mon, 18 Nov 2013 15:55:43 +0800 Organization: HFG Message-ID: <1384761343.11916.63.camel@Renee-desktop.suse> References: <1384501247.11916.8.camel@Renee-desktop.suse> <87txfb90m2.fsf@netris.org> <8738mv8hlg.fsf@netris.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1384761368 25248 80.91.229.3 (18 Nov 2013 07:56:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2013 07:56:08 +0000 (UTC) Cc: guile-devel To: Mark H Weaver Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Nov 18 08:56:13 2013 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ViJgm-0002Zy-6Q for guile-devel@m.gmane.org; Mon, 18 Nov 2013 08:56:08 +0100 Original-Received: from localhost ([::1]:41724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViJgl-0007n1-Ol for guile-devel@m.gmane.org; Mon, 18 Nov 2013 02:56:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViJgb-0007mu-QS for guile-devel@gnu.org; Mon, 18 Nov 2013 02:56:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ViJgT-0000W0-Dd for guile-devel@gnu.org; Mon, 18 Nov 2013 02:55:57 -0500 Original-Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]:59796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViJgT-0000Vu-5g for guile-devel@gnu.org; Mon, 18 Nov 2013 02:55:49 -0500 Original-Received: by mail-pd0-f171.google.com with SMTP id z10so4637708pdj.16 for ; Sun, 17 Nov 2013 23:55:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :organization:content-type:mime-version:content-transfer-encoding; bh=4WA4pdC6kzOTFgpDCWBuRLtF2gi0RG/2wNJmwDHNJnY=; b=oxIsG+B5jGXdwo66p1YZ1jVnG3UDl+m8EXd5GwjTC6o5TwQHPDPYgHXGBBUOt9JyjD BNoUr2jWJKYhJAFNrvnKR0gHRe2nb46QwC8d6YPnNplWfgDJaXj4QGgtx2sNE6S2Zx02 HG85Y+C3wkxjuVk4F7IRmrjV2rSJGi6ed/MSqfS40+9exrR9CCtiNEtbbJlstLSXBTh0 8hTIugshzs/sHoKxdbIwrytNA7Y4+Muy9vuhoCdeJjbaCElj23YccURD8VNh0FLy4f9F /1He4XrvwGzCbQX5MGkrhQka5z2C7Q16kax9MxxyDHhkaXaHq5i10hFea43rLQWrCJ12 W9ZQ== X-Received: by 10.66.150.41 with SMTP id uf9mr20141705pab.108.1384761347927; Sun, 17 Nov 2013 23:55:47 -0800 (PST) Original-Received: from [147.2.147.115] ([203.192.156.9]) by mx.google.com with ESMTPSA id hw10sm21498096pbc.24.2013.11.17.23.55.45 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sun, 17 Nov 2013 23:55:47 -0800 (PST) In-Reply-To: <8738mv8hlg.fsf@netris.org> X-Mailer: Evolution 3.4.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::22b X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:16751 Archived-At: On Sun, 2013-11-17 at 05:09 -0500, Mark H Weaver wrote: > Guile's 'include' also supports relative paths if the (include "...") > form is found within a file, or more generally, if it was read from a > port that had its filename set. > > Please tell us more about what you were doing, so that we can find out > what's going wrong. > I think it's a common situation. I planed to include b.scm into a.scm, like: -----------------a.scm-------------------- (define-syntax define-primitive ......) (include "b.scm") -----------------end---------------------- And let b.scm contains all the primitives definitions, which is explicitly for later extending. -----------------b.scm------------------- (define-primitive %halt 0 0) (define-primitive pair? 1 1) (define-primitive cons 2 2) ...... ------------------end-------------------- Now my solution is to copy all the contents from b.scm to a.scm. But this way seems not so cool hmm... > Thanks, > Mark