Re: please answer these questions as soon as possible. because i have exam
- From: Daniel Parker <danielaparker@xxxxxxxxx>
- Date: Wed, 7 Jan 2009 22:25:10 -0800 (PST)
frebe wrote:It's pointless to talk about identity without specifying the context
On Jan 6, 2:49 pm, S Perryman <q...@xxxxx> wrote:
All that identity requires is that for two different instances I1/I2 ofSo I1 and I2 doesn't need to be the same object? If I make a clone of
a type T, identity(I1) != identity(I2) .
I1, can the clone be identical to the original?
The clone has the same *state* . Not the same *identity* .
That is quite a fundamental confusion you have between the two concepts.
in which identity holds.
If I have a client going against an RDBMS, the context is clear, it's
the RDBMS server. My client program may have an object providing a
representation in one context of employee 123456, it may have a second
representation of the same employee in a different context in the same
process space, some other client program may also have such objects,
but the identity of the employee is clear. The view that the two
client programs have of employee 123456 is the same, any changes they
make to employee 123456 become changes to the same thing, something
that they share. The concept of identity applies to the employee, not
to the memory locations or such in which properties of the employee
are temporarily stored in computer programs.
Now contrast that with how identity is talked about in OO. What's the
context? It's all over the place. Sometimes it's talked about as if
its the process space of a running application (Phlip's memory
address.) Sometimes it's ORBs and "persistent object references" and
"strong identity" and some notion of distributing identity over the
wire. Sometimes we have things like TopLink that attempt some ill
conceived forcing of identiy through caching of database accesses
through clients going through TopLink, but not others. Sometimes it's
OID's stored in the database.
Your statement "The clone has the same *state* . Not the same
*identity*." is literally true, but it's not usually the clone's
identity that we care about, rather, it's about the identity of some
thing represented in the properties of the clone and the original.
And you can't make meaningful statements about that until you specify
the context of that thing.
-- Daniel
.
- Follow-Ups:
- Re: please answer these questions as soon as possible. because i have exam
- From: S Perryman
- Re: please answer these questions as soon as possible. because i have exam
- From: Dmitry A. Kazakov
- Re: please answer these questions as soon as possible. because i have exam
- References:
- please answer these questions as soon as possible. because i have exam
- From: DEEPAK
- Re: please answer these questions as soon as possible. because i have exam
- From: Phlip
- Re: please answer these questions as soon as possible. because i have exam
- From: Daniel Parker
- Re: please answer these questions as soon as possible. because i have exam
- From: Dmitry A. Kazakov
- Re: please answer these questions as soon as possible. because i have exam
- From: frebe
- Re: please answer these questions as soon as possible. because i have exam
- From: S Perryman
- Re: please answer these questions as soon as possible. because i have exam
- From: frebe
- Re: please answer these questions as soon as possible. because i have exam
- From: S Perryman
- please answer these questions as soon as possible. because i have exam
- Prev by Date: Re: object system...
- Next by Date: Re: please answer these questions as soon as possible. because i have exam
- Previous by thread: Re: please answer these questions as soon as possible. because i have exam
- Next by thread: Re: please answer these questions as soon as possible. because i have exam
- Index(es):
Relevant Pages
|