Hi Viktor, Mindaugas and others, I've just implemented support for h[ cKey ] => cKey when cKey does not exists in hash array and of course it gives optimal speed. It can be enabled by setting hash array flags by hb_hSet*() function.
Great!
Now I only need good names for this function and hb_hKey() I sent earlier and I can commit. Probably they should use some similar core name because both are bound with similar functionality. hb_hKey() was a shortcut from hb_hashKey() because this functions translates (hashes) given key value using hash array but it's probably to cryptic for users. Please propose some alternative names. Maybe sth like: hb_hSetKeyHashing( <hValue>, <lOnOFff> ) hb_hKeyHash( <hValue>, <xKey> )
Maybe: hb_HSetKeyAsDefault() hb_HGetIfExists() or hb_HKeyIfExists() Brgds, Viktor _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
