realbasic-nug
[Top] [All Lists]

Re: Subclassing Question

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Subclassing Question
From: Will Leshner <leshner at ljug dot com>
Date: Thu, 22 Aug 2002 08:54:48 -0700

On Thursday, August 22, 2002, at 07:32 AM, Randall Meadows wrote:

<RB-newbie/OO-novice>
Would it not be better form to throw and exception in this case, instead of returning nil? In my mind, there is a subtly different, but important, distinction between the two.
</>


Throwing an exception is an interesting idea. My "gut" tells me no, but I don't know why. It would certainly solve the problem.

Or, perhaps better yet, is there an RB equivalent of "pure virtual"?


No it doesn't. But it would be great if it did.



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