On Jan 26, 2007, at 7:44 PM, Stephen A. Cochran Lists wrote:


On Jan 26, 2007, at 9:31 PM, Christian Schmitz wrote:

You need to raise an exception to prevent use of the new object.

Lost me here. Why can't the new operator be used?

The only way to indicate in RB that a constructor failed would be by raising an exception. Since the constructor does not actually return anything you cannot use a NIL return value to indicate the constructor failed.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to