stricter symbol lookup in generics
This commit is contained in:
parent
75abf72503
commit
c934db86ad
6 changed files with 19 additions and 20 deletions
|
|
@ -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])
|
||||
|
|
|
|||
|
|
@ -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.}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue