🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #418

Re: Freeing from Storage object / AcceptWindow = bad example?

#418
From: Paul Burchard
Date: Mon, 03 Aug 1992 16:28
21 lines
1687 bytes
In article <SCOTT.92Aug3070403@nic.gac.edu>  writes:
> Don't get me wrong - I don't think anyone is somehow an idiot because
> they don't understand the intricacies of Storage.  Indeed, I don't
> know many people who make use of Storage very effectively.  I just
> don't think that the _examples_ should be done by someone who doesn't
> understand it ...

One thing I think messes up a lot of people is that Storage and HashTable  
(quite the odd couple!) do _very_ different things with (void *)'s.  In  
Storage, they are used as generic pointers to data chunks of known size, while  
in HashTable they are used somewhat less elegantly as generic 32-bit variables.   
But---making the confusion worse---HashTable checks equality of the 32-bit keys  
in a type-dependent manner which does dereference certain pointer types [e.g.  
(char *)'s are compared as strings].

I had to crash a few test programs before I got this thru my head...
--
--------------------------------------------------------------------
Paul Burchard	<burchard@math.utah.edu>
``I'm still learning how to count backwards from infinity...''
--------------------------------------------------------------------
Technical Details
Message-ID: <1992Aug3.162858.17836@fcom.cc.utah.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!hellgate.utah.edu!fcom.cc.utah.edu!news
References: <SCOTT.92Aug3070403@nic.gac.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!hellgate.utah.edu!fcom.cc.utah.edu!news
From: burchard@horizon.math.utah.edu (Paul Burchard)
Subject: Re: Freeing from Storage object / AcceptWindow = bad example?
Message-ID: <1992Aug3.162858.17836@fcom.cc.utah.edu>
Sender: news@fcom.cc.utah.edu
Organization: University of Utah Computer Center
References: <SCOTT.92Aug3070403@nic.gac.edu>
Distribution: world,local
Date: Mon, 3 Aug 92 16:28:58 GMT
Lines: 21