Point well-taken about putting global methods into a module if
possible. Yes, it would be nice if that were possible with Rb2005,
however, plugin developers who just whine about it not being there
and then pollute the namespace badly should probably be flogged. What
it comes down to is that we plugin developers are guests at REAL's
IDE party, and nobody likes the guests who walk around with onion
breath.
You cannot put classes and methods that extend class into modules and
protect them from namespace collisions. For these, it is imperative
that a mnemonic is used, especially for class names or method names
that we might all like to use. "Point" and "Rectangle" come to
mind... And that is a great reason to just do something consistent,
like use a mnemonic prefix or suffix for any symbols your plugin
defines.
-Brad
On Dec 5, 2005, at 1:13 AM, Frank Condello wrote:
Using prefixes/suffixes is a time-honoured hack (and I use it
myself, mostly for Rb5.2 compatible plugins) but although it helps
avoid collisions, it pollutes the namesapce just the same - it's
just that the slick is more self-contained ;)
Using 1 module name in global space is far better than 30 methods
that use the same prefix IMHO, and this works brilliantly in Rb5.5
so you can't go blaming plugin developers if Rb2005 has broken this
behaviour.
Frank.
_______________________________________________
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>
|