claro wrapper added

This commit is contained in:
Araq
2010-11-07 21:42:00 +01:00
parent 7e356f6ef2
commit 7659739caf
5 changed files with 2755 additions and 0 deletions

2734
lib/wrappers/claro.nim Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,5 @@
proc foo[T](thing: T) =
discard thing
var a: proc (thing: int) = foo[int]

View File

@@ -19,6 +19,7 @@ tconstr2.nim;69
tcontinuexc.nim;ECcaught
tcopy.nim;TEMP=C:\Programs\xyz\bin
tcurrncy.nim;25
texcsub.nim;caught!
texplicitgeneric1.nim;Key: 12 value: 12Key: 13 value: 13 Key: A value: 12 Key: B value: 13
tfinally.nim;came here 3
tfinally2.nim;ABCD
1 tack.nim 125
19 tcontinuexc.nim ECcaught
20 tcopy.nim TEMP=C:\Programs\xyz\bin
21 tcurrncy.nim 25
22 texcsub.nim caught!
23 texplicitgeneric1.nim Key: 12 value: 12Key: 13 value: 13 Key: A value: 12 Key: B value: 13
24 tfinally.nim came here 3
25 tfinally2.nim ABCD

View File

@@ -0,0 +1,11 @@
# Test inheritance for exception matching:
try:
raise newException(EOS, "dummy message")
except E_Base:
echo "caught!"
except:
echo "wtf!?"
#OUT caught!

View File

@@ -0,0 +1,4 @@
var q = false
discard (if q: {} else: {})