realbasic-plugins
[Top] [All Lists]

Re: Class Constructor

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Class Constructor
From: Norman Palardy <npalardy at great-white-software dot com>
Date: Fri, 26 Jan 2007 20:18:01 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <1hskxre dot 1g83usktlnfvaM%support at monkeybreadsoftware dot de> <6080E95D-AD14-4F3C-91CE-EDA6B596D45D at cahir dot net>

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>


<Prev in Thread] Current Thread [Next in Thread>