Hi,

Przemyslaw Czerpak wrote:
I also cannot revert the
order of variables stored for HB_P_HASHGEN because it will
change the order in which of user expression are evaluated
f.e. { ++i=>"A", ++i=>"B", ++i=>"C" } so I decided to change
it at runtime and added new function hb_hashAddNew() which
works like hb_hashAdd() but does not overwrite existing values.

Perhaps, the same effect could be reached just by picking key, value pairs in opposite order from the stack in the hb_vmHashGen(). But this is more elegant solution (it does not require two loops, first for hash value assignment, second for hb_stackPop()).


Best regards,
Mindaugas

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to