polserver/testsuite/escript/struct/struct009.src
2015-12-19 02:31:08 +01:00

11 lines
181 B
Text

program foo()
var d := 57+8, e := "abc";
var t := struct{ a:=4, b:=9, c:=12 };
print( t["b"] );
print( t["B"] );
t[ "c" ] := 42;
print(t);
endprogram