What is your best practice for setting a script in a script?

Richard Gaskin ambassador at fourthworld.com
Thu Jul 20 20:52:58 EDT 2023


Paul Dupuis wrote:
> So in the instances where you have a script that creates an object
> and then sets the script of that object (example below), what is you
> best practice for having the script in a script and still be readable?
 
Why?
 
Among other concerns (robustness, debugging, maintenance), setting the script of an object requires turning off script encryption.
 
Dick Kriesel wrote:
>

Hi, Paul. The best way to set the script may be not to; that is, instead
> set the new object’s behavior to a button that contains the readable script.
 
^ this.
 
Simple, clean, with-the-grain.
 
Know the engine.
Trust the engine.
Use the engine.
 
--  
Richard Gaskin
Fourth World System
 



More information about the use-livecode mailing list