version0.7.10
This commit is contained in:
parent
ce88dc3e67
commit
4d4b3b1c04
193 changed files with 9099 additions and 17637 deletions
|
|
@ -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