🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #24717

Re: Philosophical programming question: handles

#24717
From: Chuq Von Rospach
Date: Thu, 04 Feb 1988 17:05
28 lines
1225 bytes
>Did Apple invent the concept of "handles"? 

Nope. they've been around for a long time.

>Do other small computers (IBM PC, Atari, Amiga,
>etc.) use handles?

They can. The Mac was the first major machine that required.

>Do people ever use handles in a Unix environment?
>Most Unix programmers I talk to have never heard
>of a "handle"...

How about:

main(argc,argv)
	int argc;
	char **argv;

This is a pointer to an array of pointers to arrays of char. To do a
setenv, you basically re-arrange the array or pointers to the new
strings, but the handle (the char**) doesn't change.

chuq
Chuq Von Rospach			chuq@sun.COM		Delphi: CHUQ

                       What do you mean 'You don't really want to hurt her?'
                                    I'm a Super-Villain! That's my Schtick!
Technical Details
Message-ID: <41000@sun.uucp>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!plaid!chuq
References: <870130@hpcilzb.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!plaid!chuq
From: chuq@plaid.Sun.COM (Chuq Von Rospach)
Newsgroups: comp.sys.mac
Subject: Re: Philosophical programming question:  handles
Message-ID: <41000@sun.uucp>
Date: 4 Feb 88 17:05:25 GMT
References: <870130@hpcilzb.HP.COM>
Sender: news@sun.uucp
Reply-To: chuq@sun.UUCP (Chuq Von Rospach)
Organization: Fictional Reality, uLtd
Lines: 28