Re: A question of programming technique in C
- From: cri@xxxxxxxx (Richard Harter)
- Date: Tue, 11 Nov 2008 21:03:22 GMT
On 11 Nov 2008 04:21:49 -0800, Tim Rentsch
<txr@xxxxxxxxxxxxxxxxxxx> wrote:
cri@xxxxxxxx (Richard Harter) writes:
I agree that the names aren't very descriptive. As much as
anything they are the detritus of my changing thoughts as I was
working out the issues. In effect the scheme is a simple key and
lock system, the "descriptor" being the key and the "locator"
being the lock.
AFAIK the "descriptor" is usually called a handle or a reference,
the former being lowbrow and the latter being highbrow. :-)
Reference may be better because handles (e.g. FILE) often contain
data about the object in question.
Offhand, I can't think of a good replacement for "locator". I
thought of proxy because it handles having remote bobbles, but
that's not right. Functionally it's a bobble access lock.
Portal is fairly descriptive and is sexier.
Just to throw a couple more ideas into the mix: 'bobble_oop' in
place of 'bobble_descriptor', and 'bobble_ote' in place of
'bobble_locator'. The acronyms come from Smalltalk virtual
memory implementations - 'oop' is short for object-oriented
pointer, 'ote' is short for 'object table entry'.
That seems like a good choice; the suffixes are short and are
part of standard practice (somewhere). I almost considered using
sigil and portkey.
Upon reflection I can't think of a good reason for knowing
whether a slot is in use or not. Until I can think of a reason
I'm not going to worry about it.
The context, btw, is what you might imagine, a simulator using
interacting objects that appear and disappear and can dynamically
alter their interactions. They communication via messages in
connectors that can be broken without their knowledge.
Again, many thanks.
Richard Harter, cri@xxxxxxxx
http://home.tiac.net/~cri, http://www.varinoma.com
Save the Earth now!!
It's the only planet with chocolate.
.
- References:
- Re: A question of programming technique in C
- From: Tim Rentsch
- Re: A question of programming technique in C
- From: Richard Harter
- Re: A question of programming technique in C
- From: Tim Rentsch
- Re: A question of programming technique in C
- Prev by Date: Re: trees
- Next by Date: Re: "Foreign" programmers' thoughts on American politics?
- Previous by thread: Re: A question of programming technique in C
- Next by thread: Re: A question of programming technique in C
- Index(es):
Relevant Pages
|