Alex Tweedly wrote:

> On 09/06/2017 00:40, Richard Gaskin via use-livecode wrote:
>> I don't understand.  A script-only stack contain no objects, so
>> even if you later copy them, they still need to be dynamically
>> instantiated at some point, no?
>> Like a Zen koan: how can there be a binary object where there is no
>> binary object?
> Hmmm - we're probably heading off into the weeds here ....
> The script-only stack is used as a behaviour for controls within
> another stack - so it can copt hose controls without them bieng binary
> objects within the scrip-only stack.
> OR
> The script-only stack creates a set of objects the first time it is
> used (creating the template group).
> Subsequent uses of the script (in the same context) will (at most)
> copy that template group - so yes they are being created - but with
> minimal work because it's doing a copy rather than  "create and then
> set lots of properties".
> So not quite as much saving in the second case - but still less work
> than creating and setting lots of properties for the controls.

Thanks. Glad to find there isn't some mysterious wormhole I'd never conceived of in which a script-only stack can contain things beyond a script.

But also disappointed. There are a few cases where such a thing may be useful.

I'll leave wormholes to theoretical physics, and just stick to my script-only stacks and NIB-like UI stacks for now.

 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web

use-livecode mailing list
Please visit this url to subscribe, unsubscribe and manage your subscription 

Reply via email to