From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nalaginrut Newsgroups: gmane.lisp.guile.user Subject: Re: GOOPS:Can I just overload "slot-set!" under #:virtual and let alone "slot-ref" ? Date: Sun, 12 Dec 2010 17:42:39 +0800 Organization: HFG Message-ID: <1292146959.9448.29.camel@Renee-desktop> References: <87k4jqemx6.fsf@ossau.uklinux.net> Reply-To: NalaGinrut@gmail.com 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 1292147044 12178 80.91.229.12 (12 Dec 2010 09:44:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Dec 2010 09:44:04 +0000 (UTC) Cc: Neil Jerram , guile-user@gnu.org To: Neil Jerram Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Dec 12 10:44:00 2010 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.69) (envelope-from ) id 1PRiTH-0001qG-R6 for guile-user@m.gmane.org; Sun, 12 Dec 2010 10:43:59 +0100 Original-Received: from localhost ([127.0.0.1]:39339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRiTH-0005dx-4W for guile-user@m.gmane.org; Sun, 12 Dec 2010 04:43:59 -0500 Original-Received: from [140.186.70.92] (port=36085 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRiSv-0005bp-MB for guile-user@gnu.org; Sun, 12 Dec 2010 04:43:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRiSu-0005U1-BR for guile-user@gnu.org; Sun, 12 Dec 2010 04:43:37 -0500 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:40339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRiSu-0005Tx-8s for guile-user@gnu.org; Sun, 12 Dec 2010 04:43:36 -0500 Original-Received: by yxl31 with SMTP id 31so3373416yxl.0 for ; Sun, 12 Dec 2010 01:43:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=hbFVunZPdjXXP1N8/rC+HJKVSathID7fKICRSG3gx4Y=; b=vJM1Yxqq/gWjTiKzx+t3M4xHOnFWqvMrWCbErHgCZMbhA3CmcrqjlprUu2sLwVA4wO t9oFmbERowIXc6i01RegggztnnDW7nXhvHCKMJlpF40U/iJEW1ldmIfGnbQ/OnDJ2z8T egDeY2F0lB/KoFeml+Tb5y27nr5y12evb6Bl4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=RW/A91/VuyMpdYKKLoWtRQJ36aTCDUvTyFmLUOwY3PFeeFdr8wbQo5wVCKLC8gnRmn kLUhunxZHvM3YLHOqSCvOFugxdpZ6xdiuDplpHCtTRzzDZMMDBkveyjwRbX6S2nch7SK EjJD2HJ8REozd8w+EXdygw6s9RC52A4whDx54= Original-Received: by 10.150.96.9 with SMTP id t9mr3546182ybb.318.1292147015517; Sun, 12 Dec 2010 01:43:35 -0800 (PST) Original-Received: from [192.168.0.101] ([183.15.160.60]) by mx.google.com with ESMTPS id r41sm2715242yba.16.2010.12.12.01.43.28 (version=SSLv3 cipher=RC4-MD5); Sun, 12 Dec 2010 01:43:34 -0800 (PST) In-Reply-To: <87k4jqemx6.fsf@ossau.uklinux.net> X-Mailer: Evolution 2.28.3 X-detected-operating-system: by eggs.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:8312 Archived-At: > Nala Ginrut writes: > > > yeah~you hit it precisely! > > But I'm not sure if I modified the slot-seting call > > I'm not clear what you mean by that. yes, I don't need a "#:allocation #:virtual" actually, I want a customised "slot-set!" but a no-modified "slot-ref" while I'm reading the value. I mean you understood my problem. > > ,the result is all > > slot-set! procedure would be effected? > > No, that's not the case for either of my suggestions. > > If you invented something like `#:allocation #:custom-setter', it would > only apply to slots that had `#:allocation #:custom-setter' in their > slot definition. > > Regards, > Neil I considered this kind of solution could be more complicated, so I just modify my code to end this problem for a while. But I'd better go deep into the meta-class sometime. Thank you! -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut