LibraryStack Message

J. Landman Gay jacque at hyperactivesw.com
Wed Nov 23 21:51:50 EST 2016


The libraryStack handler should only fire when the stack is first put in 
use. It's like an openstack handler for libraries.

Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



On November 23, 2016 4:33:42 PM Sannyasin Brahmanathaswami 
<brahma at hindu.org> wrote:

> if you have a stack in your repository e.g.
>
> lib_colorManipulation.livecode  # script only
>
> that is in the stack files and your initialization script
> loops through the stack files and for every "lib_*"  file it runs
>
> start using stack [lib_colorManipulation.livecode] # and any others…
>
> these are all effectively put into the message path.
>
> OK so far, no brainer  BUT
>
> if your stack wants to also do some initialization itself… and you put this 
> into one of those stacks:
>
> on libraryStack
> # do more initialization stuff here that you
> # may prefer to encapsulate inside this script
> end libraryStack
>
> is "libraryStack"
>
> fired every time a handler is used in that script/stack?  or is 
> "libraryStack" only issued with the very first
>
> "start using ….."
>
> ?  this issue is: we don't want the initialization scripts in the stack to 
> fire everytime it is called, only on the very first "start using"
>
>
>
> Svasti Astu, Be Well
> Brahmanathaswami
> www.himalayanacademy.com
>
> _______________________________________________
> 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