comparison lua/test/sqrt.lua @ 0:0cfcc391201f

initial from svn dyncall-1745
author Daniel Adler
date Thu, 19 Mar 2015 22:26:28 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0cfcc391201f
1 clib = dcLoad("msvcrt")
2 f = dcFind(clib,"sqrt")
3
4 x = dcCall(f,"d)d",144)
5 io.write("result ",x,"\n")
6
7 x = dcCall(f,"d)d",225)
8 io.write("result ",x,"\n")
9
10
11 f = dc("msvcrt:sqrt(d)d")
12 f()
13
14
15