Hi,

Alex Strickland wrote:
   static shAllowed := {"STR"=>, "VAL"=>}
   static saAllowed := {"STR", "VAL"}
   ? "STR" $ shAllowed
   ? "STR" $ saAllowed
return

results in:

.T.
Error BASE/1109  Argument error: $
Called from MAIN(5)

Could someone explain to me why $ is defined on hashes but not arrays?

AFAIR, in Clipper value $ array is invalid operation, so, we have the same in Harbour. Hash is new type that do not exist in Clipper, so, we were free to implement any behavior.

Regards,
Mindaugas
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to