Subj : Re: [spidermonkey] How to return null in constructor To : netscape.public.mozilla.jseng From : Keiji SAKAKI Date : Wed Aug 10 2005 03:55 pm Thank you Matt and Brendan >> Alternatively, you can make the constructor throw an exception >> on error. > > > That's more like it. A constructor is not meant to return a primitive > type value such as null. If it's going to fail, it should throw. I understand that. I will try to make the constructor throw an exeption on error. regards, Keiji. .