Hey all - 

I've got a question which is simply one of curiosity.

I have a collection of 'Tool' scripts which I use from project to
project, which have been encapsulated into an all-purpose parent script,
called say "Tool Scripts Parent". This parent script has no properties;
it simply consists of functions (tools).

I can access the methods of these scripts in one of two basic ways:

1. Establish an instance and then call methods of the instance.
ie:     gTools = new(script "Tool Scripts Parent")
then:   gTools._SomeFunction()

or

2. Call the script directly, by referring not to an instance, but the
script name.
ie:     gTools = script("Tool Scripts Parent")
then    gTools._SomeFunction()

Is there really any difference between the two? Any preferred method?
Understanding of course that the parent has no properties at all - it's
simply all encapsulated in a parent script for ease of use.

I've been using the former approach (new()) for a few years and didn't
realize I could directly use the latter approach. Anyways, just
curious..


Kendall

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to