realbasic-plugins
[Top] [All Lists]

Re: Global constants

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Global constants
From: Brad Hutchings <brad at componentx dot com>
Date: Sun, 4 Dec 2005 22:35:43 -0800
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <1h6z09k dot jvw60z204edcM%support at monkeybreadsoftware dot de> <43114280-95BC-404C-AB18-F86F0A760FED at sqlabs dot net> <378AB65D-AA2F-45D0-AFCC-FAC5278316D1 at realsoftware dot com> <53AB75A6-A962-4452-A090-58EAD24FDE7F at sqlabs dot net> <5670707A-8AA1-4B30-80D3-ECC1B764DFBC at haranbanjo dot com> <41814359-6AEB-4CD7-937D-EE63254818B9 at componentx dot com> <976D5395-4633-4933-BA04-F782B6B8B7EB at chaoticbox dot com>
Right. But developers can be considerate of others in how they pollute the global namespace. That's the axe I was subtly grinding ;-). In other words, if you are declaring global anything in your plugin, prepend or append it with a short mnemonic that identifies the source. Developers (especially plugin developers) who claim that their naming collisions are REAL's fault for not have namespaces are copping out and just causing problems for everyone else. OK, axe ground, back to work.

-Brad

On Dec 4, 2005, at 10:28 PM, Frank Condello wrote:

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>

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