Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!umcp-cs!cvl!umd5!zben From: zben@umd5 (Ben Cranston) Newsgroups: net.micro.mac Subject: Re: MacTutor Considered Harmful (really fake handles) Message-ID: <1226@umd5> Date: Wed, 27-Aug-86 17:14:10 EDT Article-I.D.: umd5.1226 Posted: Wed Aug 27 17:14:10 1986 Date-Received: Wed, 27-Aug-86 21:27:06 EDT References: <139@apple.UUCP> <26700068@inmet> Reply-To: zben@umd5.umd.edu (Ben Cranston) Organization: University of Maryland, College Park Lines: 20 Summary: You really do want it In article <26700068@inmet> bhyde@inmet.UUCP writes: > ...Second about this handle stuff? I usually fack a handle in > my global data area. It never occured to me that somebody who > uses the handle might decide that it was really a handle and > start treating it as such. What a mess! This means that every > place that the documentation says a things a handle I'll actually > have to allocate a real Handle from the memory manager and then > stuff it full of things to make it have the values I want in it. > If it is code then I'll have either make it a real code resource > or I'll have to "stuff a jsr into it." (What a hack!) It may seem a hack, but what about those routines that add to an existing data structure? They rely upon being able to make the area pointed to by a handle bigger! You want them to make your carefully faked data array bigger for you? :-) -- umd5.UUCP <= {seismo!umcp-cs,ihnp4!rlgvax}!cvl!umd5!zben Ben Cranston zben @ umd2.UMD.EDU Kingdom of Merryland Sperrows 1100/92 umd2.BITNET "via HASP with RSCS"