On Dec 15, 2005, at 1:54 PM, Marco Bambini wrote:
I know that there isn't a way to add global constants inside a plugin
so my idea is to extend the RealBasic class and just add to it the
constants I need.
In this way they appears to be globals in the IDE...
Constants in my plugin are all in the form GL_* so there should not be
any collision risk.
I wonder if this method is too risky...
Any opinion?
Personally I'd create a module with a set of constants so people have
to use
OpenGLModule.constant
so there is NO ambiguity about where the constant came from AND you get
name space protection against duplicate names.
At worst you'd have to change the name of the module and not every
constant.
_______________________________________________
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>
|