Re: static typing (Learning Cocoa Chapter 13)
Re: static typing (Learning Cocoa Chapter 13)
- Subject: Re: static typing (Learning Cocoa Chapter 13)
- From: Chris Gehlker <email@hidden>
- Date: Sun, 23 Sep 2001 09:51:07 -0700
On 9/23/01 3:51 AM, "Ondra Cada" <email@hidden> wrote:
>
I would beg to differ in opinion of calling those things "handles". So far
>
as I remember the Mac OS API I've used till I went NeXTStep, "handle" was not
>
a generic synonyme for any pointer to a pointer, but a very special name of
>
a very special OS-controlled pointer to a pointer, whose contents was in some
>
situations changed by OS (to limit fragmentation).
I understood Ondra's first post perfectly. In context it was clear what
meaning of "handle" was.
Having said that, there are at least four distinct meanings of "handle" in
computer jargon.
1) a Memory Manager handle in MacOS Old and QuickTime
2) a Windows handle, such as a file handle or a window handle (which I only
understand well enough to port around).
3) any class which has a pointer or pointers to another class or classes,
called representation classes, that do lower level implementation, i.e.
NSImage.
4) a pointer to a pointer.
My experience is that if it's not clear from context, definition three above
is usually what's meant.
--
C++: The power, elegance and simplicity of a hand grenade.