Re: string_exec()

new topic     » goto parent     » topic index » view thread      » older message » newer message
petelomax said...

Not that any of this is likely to happen any time soon, but what I've gathered so far:

The notion of extendable, re-usable "contexts" is getting more and more appealing to me.

Fatal errors should(must) terminate (in) the supplied context rather than the host context.
A context contains enough (error) information to determine precisely what just happened, eg:

code = "a = 1\n"& 
       "b = 2/0\n"& 
       "c = 3" 
context = string_exec(context,code) 

Somewhere in context (I am implying the above is not the first time it is used), there should now be one of:

  • line 1, variable a has not been defined

What if variable a was declared in the program already? And what if

atom b = 9 
b += 1 
would b now be accessable to the program that called the string_exec()?

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu