On Mon, Nov 10, 2008 at 12:29 PM, Szakáts Viktor <[EMAIL PROTECTED]> wrote:

> Experienced hash users should say the final word.

We use hashes extensively and the RTE is useful to avoid mispelled
keys exactly like arrays gets RTE if accessed out of bounds.

When it's expected we use:

#xtranslate GETKEYORDEFAULT( <h>, <k>, <v> ) => iif( hHasKey( <h>, <k>
), hGet( <h>, <k> ), <v> )

or

#xtranslate GETKEYOREMPTY( <h>, <k> ) => iif( hHasKey( <h>, <k> ),
hGet( <h>, <k> ), "" )

best regards,
Lorenzo
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to