From: nalaginrut <nalaginrut@gmail.com>
To: Neil Jerram <neil@ossau.uklinux.net>
Cc: Neil Jerram <neiljerram@gmail.com>, guile-user@gnu.org
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 [thread overview]
Message-ID: <1292146959.9448.29.camel@Renee-desktop> (raw)
In-Reply-To: <87k4jqemx6.fsf@ossau.uklinux.net>
> Nala Ginrut <nalaginrut@gmail.com> 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
prev parent reply other threads:[~2010-12-12 9:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-02 7:06 GOOPS:Can I just overload "slot-set!" under #:virtual and let alone "slot-ref" ? Nala Ginrut
2010-12-02 17:40 ` Neil Jerram
2010-12-03 0:52 ` Nala Ginrut
2010-12-03 1:42 ` Neil Jerram
2010-12-03 2:13 ` Nala Ginrut
2010-12-03 18:22 ` Neil Jerram
2010-12-12 9:42 ` nalaginrut [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1292146959.9448.29.camel@Renee-desktop \
--to=nalaginrut@gmail.com \
--cc=guile-user@gnu.org \
--cc=neil@ossau.uklinux.net \
--cc=neiljerram@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).