summary refs log tree commit diff stats
path: root/compiler/procfind.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/procfind.nim')
-rwxr-xr-xcompiler/procfind.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/procfind.nim b/compiler/procfind.nim
index f0a2d9f2e..34a3482f8 100755
--- a/compiler/procfind.nim
+++ b/compiler/procfind.nim
@@ -84,3 +84,10 @@ proc SearchForBorrowProc(c: PContext, fn: PSym, tos: int): PSym =
                               fn.ast.sons[genericParamsPos]): 
           if paramsFitBorrow(fn.typ.n, result.typ.n): return 
       result = NextIdentIter(it, c.tab.stack[scope])
+
+proc SearchForBorrowProc2(c: PContext, fn: PSym, tos: int): PSym = 
+  # Searchs for the fn in the symbol table. If the parameter lists are suitable
+  # for borrowing the sym in the symbol table is returned, else nil.
+  # New approach: generate fn(x, y, z) where x, y, z have the proper types
+  # and use the overloading resolution mechanism:
+  nil