Best Practice for Library Stacks - Found word(s) check out in the Text body
Bob Sneidar
bobsneidar at iotecdigital.com
Mon Feb 17 20:05:39 EST 2014
What you are calling Scripts are actually Handlers. A Script is the entire chunk of code, containing 0 or more commands and/or functions, which belongs to an object. A handler is everything between and including an on/command/function statement and it’s corresponding end statement.
In the past, I and others have often referred to handlers as Scripts, out of laziness I suppose, but now I try to catch myself doing it because it’s really a kind of bad habit.
Bob
On Feb 13, 2014, at 08:26 , Earthednet-wp <prothero at earthednet.org> wrote:
> Richard,
> My question was probably too elementary, but what I was really asking is:
> Do all of the handlers in a single button script count as a single script, or is a single handler in the button script counted as a script, for purposes of scriptLimits.
>
> If only 10 front scripts were allowed, the method wouldn't be very useful for library purposes.
>
> Bill
>
> William Prothero
> http://es.earthednet.org
>
>> On Feb 13, 2014, at 7:46 AM, Richard Gaskin <ambassador at fourthworld.com> wrote:
>>
>> Earthednet-wp wrote:
>>
>>> I like the idea of putting libraries into buttons, then copying
>>> them into the front script at startup. When you say there is a
>>> limit of some number of scripts, what counts for a "script"? Is
>>> a single script counted as all the handlers contained within a
>>> single button?
>>
>> There used to be limits; it remains to be seen if there still are, or if the Dictionary entry for scriptLimits just needs to be updated.
>>
>> You can check out that entry for details, but in short there were the following limits when running in a standalone, which do not apply in the IDE:
>>
>> 10 frontScripts
>> 10 backScripts
>> 50 libraries
>> 10 executable lines in any string evaluated by "do" or "value"
>>
>> The latter doesn't include comments, and if a single statement is written across multiple lines with a continuation character ("\") it still only counts as one line.
>>
>>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list