At 9:54 PM +0100 12/15/05, 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.
That's very much NOT a good idea. We don't document the REALbasic
class -- if there even were such a thing -- and its use would be
reserved for REAL Software.
Anyway, why do you say there isn't a way to add global constants
inside a plugin? Just make a module, and add your constants to it
with global scope.
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.
How can you know that REAL Software won't add constants starting with
GL_ someday?
I wonder if this method is too risky...
Yes, it is. :)
Best,
- Joe
--
Joe Strout REAL Software, Inc.
Vote for REALbasic (twice!) in the LinuxWorld Reader's Choice Awards:
http://linux.sys-con.com/general/readerschoice.htm
_______________________________________________
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>
|