This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: closures for GOOPS privates
- To: clark dot mcgrew at sunysb dot edu
- Subject: Re: closures for GOOPS privates
- From: Mikael Djurfeldt <mdj at thalamus dot nada dot kth dot se>
- Date: 26 Sep 1999 18:19:24 +0200
- Cc: guile at sourceware dot cygnus dot com
- Cc: djurfeldt at nada dot kth dot se
- References: <m11VGgC-000UuqC@boxer.physics.sunysb.edu>
- Reply-to: Mikael Djurfeldt <djurfeldt at nada dot kth dot se>
Clark McGrew <mcgrew@ale.physics.sunysb.edu> writes:
> In some scheme object systems it's possible to use closures to
> associate private data with an object. Is it possible to do this with
> GOOPS? I haven't had much time to play with GOOPS it doesn't appear
> that it can be done.
What is private data?
If "private" means data that only can be accessed by a certain group
of methods, then the most straightforward method to give them private
data is to put the data together with this dedicated group in one
module.