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: Simplified slot access in goops Date: Fri, 28 Nov 2008 19:41:01 +0100 Message-ID: <1eb53f5d0811281041g69582f32r7da62bcaec6b8c39@mail.gmail.com> References: 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 1227905164 27692 80.91.229.12 (28 Nov 2008 20:46:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Nov 2008 20:46:04 +0000 (UTC) Cc: guile-user@gnu.org To: "Maciek Godek" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Nov 28 21:47:05 2008 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 1L6AEu-0000oU-3c for guile-user@m.gmane.org; Fri, 28 Nov 2008 21:47:00 +0100 Original-Received: from localhost ([127.0.0.1]:57853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6ADk-0004gX-CQ for guile-user@m.gmane.org; Fri, 28 Nov 2008 15:45:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L68H4-0007SI-Af for guile-user@gnu.org; Fri, 28 Nov 2008 13:41:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L68H2-0007Qh-Mg for guile-user@gnu.org; Fri, 28 Nov 2008 13:41:05 -0500 Original-Received: from [199.232.76.173] (port=49423 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L68H2-0007QS-IJ for guile-user@gnu.org; Fri, 28 Nov 2008 13:41:04 -0500 Original-Received: from wf-out-1314.google.com ([209.85.200.168]:21667) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L68H2-0006A2-6J for guile-user@gnu.org; Fri, 28 Nov 2008 13:41:04 -0500 Original-Received: by wf-out-1314.google.com with SMTP id 28so1488025wfc.24 for ; Fri, 28 Nov 2008 10:41:02 -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=2Psa5zUXfwz/iiAcpRWbaovvWaE7Ydxu85gyUPjGDb8=; b=i6xVkhPb/77KfA907ykBfbvC91/MWy1hZUEOYvmwUsONAvpBHUaASf2J83HYXwp/CB CaaNra0dS688EYiIk+qtBwsCtccSKs8lYDxaH+L2YB3gxIT36AZBTy8/1RM49+mKcK1N qpl9dpnbkgjLPUZJa5lRatRO9VJQhHuenOb28= 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=Kg8sIki5HCsKnxgSGPhv1ojpQeVxynJQ7/59AZRkAfl2kUXZ/Latpn7AZ8E1FPOhIs ZlIm+QpB5azTy6tk+KyTF36Tlha2Lo7l+8MI6hFBC/C1UzvmuIRl2S2H6MBo0cNryL8D kGH7aX0qMMLupe3r6aOJeepxjfu6DE8gKf5IE= Original-Received: by 10.143.155.7 with SMTP id h7mr3442633wfo.153.1227897661591; Fri, 28 Nov 2008 10:41:01 -0800 (PST) Original-Received: by 10.142.179.3 with HTTP; Fri, 28 Nov 2008 10:41:01 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Fri, 28 Nov 2008 15:45:30 -0500 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:6982 Archived-At: Unfortunately, the "in" macro fails to work with local bindings, so the code: (let ((z 0)) (in o (set! a z))) woudn't work, because primitive-eval doesn't catch the environment from the current context. I've tried to replace it with (eval ... (interaction-environment)), but it still fails. Also (local-eval ... (the-environment) didn't seem to work. If anyone has any idea how to cope with that, please help. Or perhaps there is a better way to handle these slot references? Any ideas? Regards M.