realbasic-plugins
[Top] [All Lists]

Re: Maybe a way to register global constants?

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Maybe a way to register global constants?
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Thu, 15 Dec 2005 14:11:27 -0700
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <3A710B42-C352-4D33-9B91-F04FC553B604 at sqlabs dot net>
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>


<Prev in Thread] Current Thread [Next in Thread>