Vague advice is not a bad thing, and is always welcome. High level generics are much more useful in the long run than lowlevel specifics.
I'm thinking that making a DLL for hashtable-based associative arrays would be best. A little slower than regular arrays, but much more powerful. If people want uber-speed, they can write their own damn functions
For this, I am searching for public domain hashtable libraries. Does anyone have any suggestions? I've found a couple...
http://www.efgh.com/software/htab.htm
http://www.pomakis.com/hashtable/hashtable.c
So, functions I would like to implement include:
- Prettymuch all array functions in PHP per http://php.net/array - particularly the sorting stuff.
- Save/load.
- Append (option to overwrite or leave existing keys)
- Identity comparison (true if arrays are the same array)
- Comparison (true if arrays contain the same items at the same keys)
- Content comparison (true if arrays contain the same items in any order)
- Key comparison (true of the arrays contain the same keys)
- A "foreach" iteration thing, which either respects the last-used sorting method, or lets you specify one.
- Conversion to/from DBP arrays, memblocks, matrices, and string (and via memblocks, also bitmaps, images, sounds, meshes, and mesh deformations).
- Import from mysql
Are there any programming standards, best practices, guidelines or naming conventions to which I could/should try to adhere? Techlord's thread on this was all I could find. http://forum.thegamecreators.com/?m=forum_view&t=117232&b=1
(If I can pull this off, I'll try for perl-style regexes next, because I couldn't find any solution for that in the manual or forums either)
Yet another game programmer