Plain text library stacks

Mark Waddingham mark at livecode.com
Thu Apr 23 12:26:17 EDT 2015


> So, script "stackname" must be at the 1st line of the textfile.

Ah yes - that is indeed the case - it is quite picky, for two reasons.

The first was that the main use-case I had in mind when implementing it 
was to replace IDE stacks which were only scripts and thus they would be 
edited in the IDE.

The second is that the *only* part of the file which the engine retains 
when it is loaded is the 'name' on the first line and everything on the 
second line onwards. If text before the 'script' line were allowed then 
it is not clear how you might access that when the stack is loaded into 
memory - it would essentially be invisible information in the internal 
stack structure that would only appear when the stack is saved again.

Mark.

-- 
Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps




More information about the use-livecode mailing list