wduquette / molt

Embeddable TCL Interpreter for Rust applications
BSD 3-Clause "New" or "Revised" License
103 stars 12 forks source link

Full TCL return/error protocol #13

Open wduquette opened 5 years ago

wduquette commented 5 years ago

Standard TCL's return and error methods allow TCL code to return and process any valid return code (including break and continue) which is important when implementing control structures, as well as error codes on error returns. It isn't clear that Molt needs all of this machinery, but ultimately we probably want to provide it.

wduquette commented 5 years ago

Note: Molt does provide equivalents of all of the standard TCL return codes. It's the ability to define arbitrary return codes that's lacking.