realbasic-betas.mbox
[Top] [All Lists]

Re: OT: Global Methods

To: REALbasic Betas <realbasic-betas at lists dot realsoftware dot com>
Subject: Re: OT: Global Methods
From: Chris Little <cslittle at mac dot com>
Date: Fri, 25 Oct 2002 17:12:46 -0400
on 10/25/02 4:45 PM, john roberts at jarobe01 at athena dot louisville dot edu 
wrote:

> on 10/25/02 4:10 PM, Chris Willis at rb-dr at macest dot com wrote:
> 
>> Where is the best place to store global methods - a module or the
>> application class? Is one more suitable than the other? The only difference
>> I currently see is when a method is in the application class, it needs
>> "appclassname." appended to the start of the line. I'm sure there's
>> differences deep down in the runtime code...would someone like to enlighten
>> me?
> 
> Storing them in one or more modules make them easier to incorporate into
> other projects.
> 

They should be slightly faster to call as well since RB doesn't have to get
the application object first.

Chris


---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:realbasic-betas-off at lists dot realsoftware dot com>

Subscribe to the digest:
<mailto:realbasic-betas-digest at lists dot realsoftware dot com>
.


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