Go Card Error Handling

Mark Wieder mwieder at ahsoftware.net
Sat Jun 25 13:23:47 EDT 2016


On 06/24/2016 10:08 AM, Mark Waddingham wrote:

> Suggests that these are two distinct operations and a 'cleaner' model
> would be perhaps to have:
>
>     load stack <stack filename>
>
> To load a stack from disk which, as it involves file I/O, should set the
> result.
>
> And, furthermore, make:
>
>     go stack <name_of_stack>
>
> Only succeed if the named stack is in memory, if it is not then it
> should throw an error.
>
> I'm minded to think here that there is actually a nice separation here.

Agreed. And I think this also has a relation to the long-standing 
'delete stack' conundrum:

http://quality.livecode.com/show_bug.cgi?id=1081
http://quality.livecode.com/show_bug.cgi?id=3932

-- 
  Mark Wieder
  ahsoftware at gmail.com




More information about the use-livecode mailing list