Debian Codegraph @

terps/tads/tads3/test/data/dstr1.t

raw
1 #include "tads.h"
2 #include "t3.h"
3
4 main(args)
5 {
6 local f;
7
8 f = func();
9 "f = <<f>>; f == nil ? <<f == nil ? "yes" : "no">>\n";
10
11 f = callback({ : "anon!\n" });
12 "f = <<f>>; f == nil ? <<f == nil ? "yes" : "no">>\n";
13 }
14
15 preinit() { }
16
17 func()
18 {
19 local x = true;
20
21 return x ? "Hello!\n" : "";
22 }
23
24 callback(f) { return f(); }