closure is now default calling convention for proc types

This commit is contained in:
Araq 2012-07-24 08:28:05 +02:00
commit 033dc50c69
2 changed files with 1 additions and 2 deletions

View file

@ -817,7 +817,7 @@ proc semTypeNode(c: PContext, n: PNode, prev: PType): PType =
s.typ = result s.typ = result
if n.sons[1].kind == nkEmpty or n.sons[1].len == 0: if n.sons[1].kind == nkEmpty or n.sons[1].len == 0:
if result.callConv == ccDefault: if result.callConv == ccDefault:
#result.callConv = ccClosure result.callConv = ccClosure
Message(n.info, warnImplicitClosure, renderTree(n)) Message(n.info, warnImplicitClosure, renderTree(n))
else: else:
pragma(c, s, n.sons[1], procTypePragmas) pragma(c, s, n.sons[1], procTypePragmas)

View file

@ -16,7 +16,6 @@ New pragmas:
- make toplevel but in a scope vars local; make procs there inner procs - make toplevel but in a scope vars local; make procs there inner procs
- fix evals.nim with closures - fix evals.nim with closures
- implement "closure tuple consists of a single 'ref'" optimization - implement "closure tuple consists of a single 'ref'" optimization
- make closure default calling convention for proc types
- make 'raiseHook' take a closure and provide push and pop for this - make 'raiseHook' take a closure and provide push and pop for this
--> Lisp-style exception system --> Lisp-style exception system