[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: categorizing traits objects
- To: self-interest@self.stanford.edu
- Subject: Re: categorizing traits objects
- From: jecel@lsi.usp.br (Jecel Mattos de Assumpcao Jr.)
- Date: Sat, 9 Oct 93 00:19:04 EST
- Reply-to: <jecel@lsi.usp.br>
- Resent-date: Sat, 9 Oct 93 10:51:07 PDT
- Resent-from: Urs Hoelzle <urs@otis>
- Resent-message-id: <9310091751.AA17422@otis.Stanford.EDU>
- Resent-to: real-self-interest
> > Ohhhh... NO!!! I think one of the major advantages of Self compared with
> > Smalltalk is the possibillity to define private slots. Looking at Digitalk's
> > Smalltalk/V you can find a lot of methods with comment "Private", even though
> Privacy is a Good Thing, no doubt about that. However, we felt that
> the current (2.0) privacy semantics didn't do the right thing. Often,
> too many objects had access to "private" slots, and all-to-often we
> annotated slots with "_", meaning "I consider it private but had to
> make it public to allow access". In particular, privacy had no notion
> of "friend" - collaborating objects that have more access than the
> rest of the world but aren't related via inheritance.
Back in 1984 I designed a privacy scheme for Smalltalk: every class had
two method dictionaries - one which was searched for normal messages and
another that was used for messages to self. The browser put public methods
in both dictionaries but private methods only in the second ( you could
even have methods that anybody but yourself could send! ). You can imagine
that I was quite excited to see this feature in Self. In practice, though,
I *never* got around to using it. So I am not sorry to see it go.
Right now I am trying to make a "multiuser" Self. Each object would
belong to a user and could only be modified by that user. Besides the
"real" users there would be many pseudo users created just to break up
the system into smaller ( somewhat protected ) modules. All objects
from the same user would be "friends", but in my scheme every readable
slot is free game for everybody. This obviously needs work.
- Jecel