A function by the same name as a class would cause problems
type-casting, however...
Eric Harris-Braun wrote:
On Friday, March 28, 2003, at 10:29 PM, Charles Yeomans wrote:
RB 5 won't let me add a function FolderItem() as FolderItem to a
class. Surely this is a bug...
'Folderitem' is a reserved name, you can't use it for methods or
properties and expect to be able to call them. In fact, its a bug
that you can actually use reserved names for method/property names.
As I understand it, reserved words are reserved only because without
doing so you can't figure out the syntax of the language. In all
other cases you don't want to reserve words because it decreases the
number of things you can say! So, the fact that you can create a
property, local variable, or method that has the same name as a global
function or some other name that also has a broader meaning in the
language should not be a bug.
-Eric
--
The above message is encrypted with double rot13 encoding. Any unauthorized
attempt to decrypt it will be prosecuted to the full extent of the law.
---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>
Unsubscribe:
<mailto:realbasic-betas-off at lists dot realsoftware dot com>
Subscribe to the digest:
<mailto:realbasic-betas-digest at lists dot realsoftware dot com>
.
|