What is Handle ??

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
Live24x7
Forum Contributor
Posts: 194
Joined: Sat Nov 19, 2011 9:32 am

What is Handle ??

Post by Live24x7 »

What is Handle in general programming context ?
I am coming across this term often when reading about design patterns.

thanks
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: What is Handle ??

Post by califdon »

"In computer programming, a handle is an abstract reference to a resource."
You will find answers to questions like this in Wikipedia, among other places:
http://en.wikipedia.org/wiki/Handle_%28computing%29
User avatar
Christopher
Site Administrator
Posts: 13595
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: What is Handle ??

Post by Christopher »

phpdevelopment wrote:a handle is a token, typically a pointer
I think the main distinction between a handle and a pointer is that a handle does not refer directly to a memory address. That makes any memory associated with the handle relocatable -- unlike a pointer.
(#10850)
Post Reply