cfad47cfa3/t3compiler/tads3/test/data/propdecl.t
| 4b825dc642cb6eb9a060e54bf8d69288fbee4904 | cfad47cfa334b206c65f22086bcc5d63e6f70944 | ||
|---|---|---|---|
1 | #include "tads.h" | ||
2 | |||
3 | /* define some properties - do two in one list to check comma handling */ | ||
4 | property prop3, prop4; | ||
5 | |||
6 | /* do one in a list by itself to check that syntax as well */ | ||
7 | property prop5; | ||
8 | |||
9 | obj1: object | ||
10 | prop1 = 'this is prop1' | ||
11 | |||
12 | test() | ||
13 | { | ||
14 | "calling prop1: <<prop1>>\n"; | ||
15 | "calling prop2: <<prop2>>\n"; | ||
16 | "calling prop3: <<prop3>>\n"; | ||
17 | } | ||
18 | ; | ||
19 | |||
20 | main(args) | ||
21 | { | ||
22 | obj1.test(); | ||
23 | obj1.prop6(); | ||
24 | } |
Download diff