Global scope of functions

xbury.cs at clearstream.com xbury.cs at clearstream.com
Thu Jul 14 03:03:44 EDT 2005


Hi Rob

Yes, that's the way. However if it is only one card, clarity can be 
improved 
if your card related scripts are in the card scripts and the stack-only
related scripts reside in the stack script. This is IMOHO the best way
 for future expansions of the software.

If you have more than one card (in a background group for example) then
it's best to keep things in the background script instead of the card. The
card script being only local to that card. Naturally the stack script 
applies
again here. But if there are 2 backgrounds, then the stack scripts may 
introduce conflicts between group operations...

The advantage of the stack script is that it sees it all in the stack...

cheers
Xavier

On 14/07/2005 08:57:18 use-revolution-bounces wrote:
>Dear Colleagues
>I'm producing a new tool for my research, and I'm trying to do this
>'properly'. In other words, I am trying to cut down the amount of coding
>scattered through the application (buttons, menus etc) and put calls
>to functions or handlers at these locations. I then assemble all the
>functions and handlers in the stack script (app is a 1 card stack).
>
>Is this the logical way forward, or have others found better ways?
>
>--
>All best wishes,
>Rob
>
>(Created at 07:52 on 14/07/2005)
>
>
>
>==============================================================
>Prof. Rob Beynon                    |+44 151 794 4312 (voice)
>Dept. Veterinary Preclinical        |+44 151 794 4243 (fax)
>Sciences, University of Liverpool,
>Crown Street, Liverpool L69 7ZJ     |mailto:r.beynon at liv.ac.uk
>--------------------------------------------------------------
>http://www.liv.ac.uk/pfg            |http://www.csiv.org
>==============================================================
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your 
subscription 
>preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution


-----------------------------------------
Visit us at http://www.clearstream.com
                                                          
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents of
this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you are
not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically
states them to be the views of Clearstream International or of any of
its affiliates or subsidiaries.

END OF DISCLAIMER



More information about the use-livecode mailing list