[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Confused about owner
From: |
Sam Roberts |
Subject: |
Confused about owner |
Date: |
Mon, 14 May 2001 00:33:43 -0400 |
User-agent: |
Mutt/1.3.16i |
Can someone clue me in to the thinking behind the object's
owner.
A header's owner seems to be a message. So it looks like
the owner is being used for encapsulation.
But a message's owner seems to be it's derived object. I.e.
a imap_message is derived from a message, and a message
has a pointer back up to an imap message.
So it looks like "random data, useful to the creator of the
object". That's cool, but can I (as a user of the mailbox
API) use it, too? Can I cal set_owner on things, or am going
to trample something? It looks like it. This kind of looks
like something that should be for internal use only, because
it returns pointers to objects who's type's I don't know,
so can't use.
Am I correct?
Sam
--
Sam Roberts <address@hidden> (Vivez sans temps mort!)
- Confused about owner,
Sam Roberts <=