cfad47cfa3/t3compiler/tads3/test/data/props.t
| 4b825dc642cb6eb9a060e54bf8d69288fbee4904 | cfad47cfa334b206c65f22086bcc5d63e6f70944 | ||
|---|---|---|---|
1 | #include "tads.h" | ||
2 | #include "t3.h" | ||
3 | |||
4 | _main(args) | ||
5 | { | ||
6 | t3SetSay(&_say_embed); | ||
7 | main(); | ||
8 | } | ||
9 | |||
10 | _say_embed(str) | ||
11 | { | ||
12 | tadsSay(str); | ||
13 | } | ||
14 | |||
15 | main() | ||
16 | { | ||
17 | test.p3 = 'new property test.p3'; | ||
18 | test.p2 = 'updated test.p2'; | ||
19 | } | ||
20 | |||
21 | test: object | ||
22 | p1 = 'This is test.p1' | ||
23 | p2 = 'And this is test.p2' | ||
24 | ; | ||
25 |
Download diff