realbasic-betas.mbox
[Top] [All Lists]

overriding sub with function - bug or feature?

To: REALbasic Betas <realbasic-betas at lists dot realsoftware dot com>
Subject: overriding sub with function - bug or feature?
From: Thomas Tempelmann <listuser at tempel dot org>
Date: Sun, 28 Apr 2002 14:14:14 -0700
I just noticed that the compiler does not complain that if
I have declared a function (returning something) in a class
and if I then provide a same-named method without a function
return in a subclass.

Example:

 Class1:
   function Validate() as Boolean

 Class2 (subclass of Class1):
   sub Validate()

Shouldn't this be disallowed?

Thomas


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