Debian Codegraph @

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

raw
1 /*
2 * test of 'if (objName && expr)' - a bug in the compiler caused this to
3 * generate incorrect code
4 */
5 main(args)
6 {
7 if (myObject && myObject.location)
8 "then crash";
9 }
10
11 myObject: object
12 ;
13
14 otherObject: object
15 location = nil
16 ;
17