something that has confused me for a second is the use of HashTables to
store a user defined type. the constructor is fine, its just insertion and
querying that's mildly confusing. for instance, it seems as if
zend_hash_add takes sizeof(struct) as an argument as opposed to
sizeof(struct *) when i assume that generally we only store pointers in the
hash.

suppose i have a struct of type widget_t which gets allocated on the heap.
what's the general practice of inserting and retrieving widget from the hash
table ?



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to