"Domain error" is not a catch-all - it refers to a specific condition.
Usually, it alerts you to look at the datatype of a function's arguments (it actually refers to a more general circumstance but this flavor of it encompasses 99% of the times I get it). It differs from syntax error, length error, and value error (which are the other three errors I usually get). Actually, I was surprised to see that there are more than thirty errors available in the "errors" section of the dictionary since I usually only encounter these few. I suspect this is true of most people - with the possible exception of Dan Bron who probably gets more "nonce errors" than everyone else combined. I like the way J handles errors by providing a few broad categories that cover many cases. There have been suggestions that more detailed errors should be provided but I find that this sort of thing gets annoying very quickly. On 5/6/08, Zsbán Ambrus <[EMAIL PROTECTED]> wrote: > > ... > I don't really like how "domain error" is a very common catch-all > error message (like "illegal function call" is in basic, you could > even get it without calling any functions). > ... -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
