PageRenderTime 23ms CodeModel.GetById 16ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Interpreter/Script/type_conv_test.io

http://github.com/dennisferron/LikeMagic-All
Unknown | 19 lines | 18 code | 1 blank | 0 comment | 0 complexity | 43f005938e5a421cc62baf03ea3415d0 MD5 | raw file
 1LM := LikeMagic classes
 2
 3for( c, 0, 10,
 4    v := LM btVector3 new(1, 2, 3)
 5    v delete
 6    s := LM irrFsStr newFromCStr("hello!")
 7    s delete
 8    a := LM ArrayOfVector3df new
 9    for (i, 1, 10,
10        v = LM vector3df new(i, i, i)
11        a push_back(v)
12    )
13    t := 0
14    for (i, 1, 10,
15        t = t + a[i-1] get_X
16    )
17    a delete
18    writeln(c, ": ", t)
19)