version0.7.10

This commit is contained in:
Andreas Rumpf 2009-06-08 08:06:25 +02:00
commit 4d4b3b1c04
193 changed files with 9099 additions and 17637 deletions

View file

@ -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")

View file

@ -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")

View file

@ -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)