In Rb 2005 you're going to pollute the global namespace no matter
what: <http://www.realsoftware.com/feedback/viewreport.php?
reportid=acfhivpw>
Then there are times where using a namespace would be nice but it's
not possible to extend it with Rb code, so globals (or nasty hacks)
are your only alternatives: <http://www.realsoftware.com/feedback/
viewreport.php?reportid=agwxxgcl>
Frank.
–––––––––––––––––––––––––––––––––
Open Source RB Goodies and Shareware
<http://developer.chaoticbox.com/>
<http://www.chaoticbox.com/>
–––––––––––––––––––––––––––––––––
On 5-Dec-05, at 1:09 AM, Brad Hutchings wrote:
Ah, come on Will... Lots of plugin developers pollute the global
namespace. It's one of those things that makes Pure Rb code ("no
plugins, no declares") so attractive to the masses.
-Brad
On Dec 4, 2005, at 7:42 PM, Will Leshner wrote:
Actually, it would be better to have the constants require the dot
notation. Either have them be part of a class, or part of a module
your plugin exposes. To do otherwise pollutes the global namespace.
_______________________________________________
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>
_______________________________________________
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>
|