"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]


> The constructor should be as quick as possible and have as little
> logic as possible.  What kind of failure are you trying to catch?

not really trying to 'catch' a failure.

I have to parse the given string format and determine if that format is
valid.

If yes, then I can do more work and return an instance.

If no, I wanted to return a NULL. That way I know it failed.

Maybe I should be looking at PEAR::Error istead of a NULL on faliure.

Thanks

Walter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to