Le 2 avr. 07 à 17:41 Soir, [EMAIL PROTECTED] a écrit:

> 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.

That's also what I think.

I asked because I read somewhere that New Picture and NewPicture  
where the same thing (so I thought: "New Picture" is not really  
constructed with "New" but is connected to NewPicture"). I think I  
read that in the language reference.

Thank you
_______________________________________________
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