stricter symbol lookup in generics

This commit is contained in:
Araq 2012-09-17 17:01:34 +02:00
commit c934db86ad
6 changed files with 19 additions and 20 deletions

View file

@ -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])

View file

@ -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.}