On Apr 02, 2007, at 15:08 UTC, Arnaud Nicolet wrote:

> Like NewPicture, should not new FolderItem return nil if it can't be 
> created?

No, it should raise an exception, like I would expect New Picture to
do.  Note the difference between New Picture and NewPicture -- the
latter is a function that returns a result; the former uses the New
operator, which is defined to always return a valid object.  The only
way that New can fail is to raise an exception, bypassing the return
altogether.

Best,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to