summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-09-17 17:01:34 +0200
committerAraq <rumpf_a@web.de>2012-09-17 17:01:34 +0200
commitc934db86adec7437e1a9b5db93864f5ff5287eed (patch)
tree192da723255f51b151a3e1bc6423e5271df0469b /lib/system
parent75abf7250325d90a74189ea7e4852d36c3fdd67c (diff)
downloadNim-c934db86adec7437e1a9b5db93864f5ff5287eed.tar.gz
stricter symbol lookup in generics
Diffstat (limited to 'lib/system')
-rwxr-xr-xlib/system/assign.nim2
-rwxr-xr-xlib/system/profiler.nim5
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/system/assign.nim b/lib/system/assign.nim
index a6c274250..895a7f9fd 100755
--- a/lib/system/assign.nim
+++ b/lib/system/assign.nim
@@ -144,6 +144,8 @@ proc objectInit(dest: Pointer, typ: PNimType) =
   
 # ---------------------- assign zero -----------------------------------------
 
+# dummy declaration; XXX we need 'mixin' here
+proc destroy(x: int) = nil
 proc nimDestroyRange*[T](r: T) =
   # internal proc used for destroying sequences and arrays
   for i in countup(0, r.len - 1): destroy(r[i])
diff --git a/lib/system/profiler.nim b/lib/system/profiler.nim
index 28edeff7a..eafa010ef 100755
--- a/lib/system/profiler.nim
+++ b/lib/system/profiler.nim
@@ -11,10 +11,7 @@
 # code generator. The idea is to inject the instruction stream
 # with 'nimProfile()' calls. These calls are injected at every loop end
 # (except perhaps loops that have no side-effects). At every Nth call a
-# stack trace is taken. A stack tace is a list of cstrings. We have a count
-# table of those.
-# 
-# The nice thing about this profiler is that it's completely time independent!
+# stack trace is taken. A stack tace is a list of cstrings.
 
 {.push profiler: off.}