version0.7.10
This commit is contained in:
parent
ce88dc3e67
commit
4d4b3b1c04
193 changed files with 9099 additions and 17637 deletions
|
|
@ -40,7 +40,7 @@ writeln(stdout, "Hallo", " World", "!")
|
|||
|
||||
echo(["a", "b", "c", "d"].len)
|
||||
for x in items(["What's", "your", "name", "?", ]):
|
||||
echo(x = x)
|
||||
echo(x)
|
||||
var `name` = readLine(stdin)
|
||||
{.breakpoint.}
|
||||
echo("Hi " & thallo.name & "!\n")
|
||||
|
|
|
|||
|
|
@ -12,10 +12,6 @@ import
|
|||
cairowin32, cairoxlib,
|
||||
odbcsql,
|
||||
gl, glut, glu, glx, glext, wingl,
|
||||
zlib
|
||||
|
||||
import "lib/base/lua/lua"
|
||||
import "lib/base/lua/lualib"
|
||||
import "lib/base/lua/lauxlib"
|
||||
zlib, lua, lualib, lauxlib, mysql, sqlite3, python, tcl
|
||||
|
||||
writeln(stdout, "test compilation of binding modules")
|
||||
|
|
|
|||
|
|
@ -13,3 +13,13 @@ template withOpenFile(f, filename, mode: expr, actions: stmt): stmt =
|
|||
withOpenFile(txt, "ttempl3.txt", fmWrite):
|
||||
writeln(txt, "line 1")
|
||||
txt.writeln("line 2")
|
||||
|
||||
# Test zero argument template:
|
||||
template ha: expr = myVar[0]
|
||||
|
||||
var
|
||||
myVar: array[0..1, int]
|
||||
|
||||
ha = 1
|
||||
echo(ha)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue