realbasic-plugins
[Top] [All Lists]

Re: hidden classes

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: hidden classes
From: Alfred Van Hoek <vanhoek at mac dot com>
Date: Wed, 29 Jun 2005 21:28:39 -0400
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <1gyxxas dot 1m65iwkq2ap7hM%support at monkeybreadsoftware dot de> <a06200712bee8c04a164d at [10 dot 10 dot 13 dot 4]> <298437de9cb89ae80020ca5de9406d67 at great-white-software dot com> <a06200716bee8ce806b14 at [10 dot 10 dot 13 dot 4]> <024ca5a1a133d7ee654de41759efb0a3 at great-white-software dot com>

On Jun 29, 2005, at 6:23 PM, Norman Palardy wrote:

Right.
So document that plugin authors should NOT start identifiers with and underscore because REAL has reserved this naming convention. Then, if someone uses it, and suddenly their plugin breaks, you can say "We told you not to" and be done with it.

Other wise you leave yourself open to the "But you never told us not to do this therefore support it til hell freezes over" argument.


But what if you need a singleton class? If one can hide this class then ordinary users don't know about this class and the plugin developer can use this class internally, to allow for proper setup of a plugin as well as proper destruction of a plugin, since RB will take care of calling the destructor in the latter case. This would be a good example of utilizing an existing mechanism. Perhaps RS can provide an alternative for the underscore?

Alfred

_______________________________________________
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>