Home

News

International

Screen Shots

Documentation

Download

Build

License

Credits

Contact

SourceForge Project

Tintware Documentation : Tint Programming Language : Tint Reference : Contexts

Contexts

A context is where evaluation happens in Tint. You create a context and it runs. When you create a context, you specify a setup value and a forever value; either of these can be empty. Setup will get evaluated once, and forever will get evaluated repeatedly until the context is freed.

A context contains a dictionary, which means that, like procedures, other objects can be defined within a context. The current context can be named using a shortcut: $ always refers to the current context.

tint.context Create a context or get the current context

tint.thread Create a context executing on another thread

context.forever Return the forever value of a context

context.setup Return the setup value of a context

context.error Return any error information or indicate that an error occurred.

context.free Free a context

context.state Return the current state of a context

context.abort Aborts the current execution of a context

context.ctrl Sets the context be aborted on Ctrl-C