On Sat, 12 Jul 2008, Mindaugas Kavaliauskas wrote:

Hi Mindaugas,

> PROC main()
> LOCAL aI := {"A" => 1, "A" => 2}
>   ? aI["A"]      // prints: 1
> RETURN
> no compile warning/error generated

I think I should add such warning.

> and I would expect result "2" (the last one) to be printed.

This we can discus. For sure it should give the same results
as HB_HASH() and now they are reverted.
So we should change HB_HASH() function or the order of variables
stored for HB_P_HASHGEN PCODE.
What do you prefer?

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

Reply via email to