So we might as well modify hb_HDel() to return
a boolean showing the success of the operation,
rather than an RTE. Makes more sense to me too,
and allows for quicker code, as there is no need
to explicitly check for such error situation.
RTE could be reserved for the case when the
first hash parameter is of the wrong type or
missing.
Brgds,
Viktor
On 2008.11.06., at 15:54, Pritpal Bedi wrote:
Hi
Szakáts Viktor wrote:
What was the reasoning behind adding an RTE for non-existing
key lookup, does anyone have any memories on that?
This is exactly which breaks my natural preception about hashes.
Also hb_hDel( aNonExistentKey ) generates RTE, should not be IMO.
Regards
Pritpal Bedi
--
View this message in context:
http://www.nabble.com/2008-11-01-21%3A13-UTC%2B0100-Przemyslaw-Czerpak-%28druzus-at-priv.onet.pl%29-tp20284056p20362591.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour