From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Panicz Maciej Godek" Newsgroups: gmane.lisp.guile.user Subject: Re: Guile module system problem Date: Tue, 20 Jan 2009 17:52:37 +0100 Message-ID: <1eb53f5d0901200852h4c7c29afm64df2c77db09a42a@mail.gmail.com> References: <1eb53f5d0901200218n227d2db0le7f511bf7f8fbf57@mail.gmail.com> <49dd78620901200415w2b013eeiff6062136f0f07de@mail.gmail.com> <1eb53f5d0901200507v39639fbq1577f53b143b08a3@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232470757 5847 80.91.229.12 (20 Jan 2009 16:59:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2009 16:59:17 +0000 (UTC) Cc: guile-user@gnu.org To: "Neil Jerram" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jan 20 18:00:30 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LPJxl-0001Oh-RF for guile-user@m.gmane.org; Tue, 20 Jan 2009 18:00:30 +0100 Original-Received: from localhost ([127.0.0.1]:43923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPJwU-0007nu-OG for guile-user@m.gmane.org; Tue, 20 Jan 2009 11:59:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPJqD-00053D-1r for guile-user@gnu.org; Tue, 20 Jan 2009 11:52:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPJqB-00052d-Th for guile-user@gnu.org; Tue, 20 Jan 2009 11:52:40 -0500 Original-Received: from [199.232.76.173] (port=54845 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPJqB-00052T-I7 for guile-user@gnu.org; Tue, 20 Jan 2009 11:52:39 -0500 Original-Received: from ey-out-1920.google.com ([74.125.78.144]:59734) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LPJqB-0000BT-5P for guile-user@gnu.org; Tue, 20 Jan 2009 11:52:39 -0500 Original-Received: by ey-out-1920.google.com with SMTP id 4so349766eyg.24 for ; Tue, 20 Jan 2009 08:52:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Th4Gxfd8J+epKo3pNyVQRz0B+A9GSrSHqJan3fvMZWc=; b=PL9U+D8PkJ+r9behV5XQvtxqzIOa46HXIXIFU3LXVfPLJ5w61FvNdXFJBXEDDw9Z18 OAmaixeKlTXt0UWR6KngYqAxDPpG6hqZDnLXWXiAVcq/Bv0afVI1ORH6DOBdHOwtrhxj Nz6K8+Tzt75ESpOYS0Px9XKz1wU065LftVcn4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=JlqnaUK4tJxvRjOak4EtUx+16vV2R55aWWXVAHt8jC0GdviqiyOzID7ZKiMYLD9PMo Wo7hxNAqKJdngJpkfUoMFY9XyQ3xdbvYTVksjllV3S4RPYSpjArMT2/XWA5YzmmkWTbw S85X/wblnUsx3JeE0RsVSFUlpyOqYyVRUySV8= Original-Received: by 10.210.60.3 with SMTP id i3mr8872146eba.189.1232470357770; Tue, 20 Jan 2009 08:52:37 -0800 (PST) Original-Received: by 10.210.113.5 with HTTP; Tue, 20 Jan 2009 08:52:37 -0800 (PST) In-Reply-To: <1eb53f5d0901200507v39639fbq1577f53b143b08a3@mail.gmail.com> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7071 Archived-At: > The solution is to refer to the goops's slot-ref function > in some other way (perhaps using the @ operator) Yet it's still not working. Now the module looks more or less like this: (define-module (modules goose) :use-module (oop goops) :replace (slot-ref)) (define slot-ref (make-procedure-with-setter (@ (oop goops) slot-ref) slot-set!)) and the error I get when I try to use that module, is: ERROR: invalid syntax #> What is wrong?