Best Practice for Library Stacks
Earthednet-wp
prothero at earthednet.org
Thu Feb 13 11:26:55 EST 2014
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.
>
>
More information about the use-livecode
mailing list