/* * anonymous functions */ #include "tads.h" #include "t3.h" class RuntimeError: object construct(errno, ...) { errno_ = errno; } display = "Runtime error: <>" errno_ = 0 exceptionMessage = '' ; _say_embed(str) { tadsSay(str); } _main(args) { try { t3SetSay(&_say_embed); main(args); } catch (RuntimeError rte) { "\n<>\n"; } } main(args) { local i; for (i = 1 ; i < 10 ; ++i) { { local j; j = i * 10; "i = <>, j = <>... "; } local k; if (i == 1) k = 123; "k = <>\n"; } }