On Mon, 2004-02-23 at 19:37, Michal Moskal wrote:
> This ain't C -- for errors you should get exception, not -1.
Not so. According to microsoft's guidelines, it depends on the error -
if it's an error that you expect to get often, there should be a return
code to indicate it. This is because of the performance cost of
exceptions.

There are various examples of this, such as Hashtable returning null if
you ask for a non-existent key and string.IndexOf() returning -1 if the
thing you are searching for is not found.
-- 
Iain McCoy <[EMAIL PROTECTED]>

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to