slangmgh

Results 11 comments of slangmgh

@timotheecour Yes, I thought about it, with the case that have optional parameter(with default value) combine the last untyped param. Fix this need to change the parameter and argument bind...

@timotheecour I think the PR nim-lang/Nim#18618 will fix lots of untyped parameter's undefined symbol compiler error with overloaded template, of case not all. You can still improve this, but that's...

@timotheecour I have an idea. 1. First map the index between arguments and parameters: bind first N non-optional parameter with the first N arguments and last M non-optional parameter with...

I hope the it is ``discardable``, so the code in nim is just as same as in python. ```nim proc plot_data(data: HistData) = if not init_python(): return plt.rcParams["font.sans-serif"]=["SimHei"] plt.rcParams["axes.unicode_minus"] =...

Only compile with msvc (any version) will generate the problem, use gcc doesn't.

msvc 2005 2008 2010 2013 2017 2019 32bit/64bit

add line ``GC_Ref(codes)`` before loop will prevent the bug happen. Or add reference like ``echo codes.len`` before the proce return will prevent the bug happen too.

Most likely bug of msvc c optmizer. Possible generate the same code with ``for code in codes``, which use pointer rather than object, and dont know it will fix the...

This is the gc bug with msvc compiler optimizer. When the msvc optimizer the code, the variable `codes` is not on the stack (maybe in register, I doesn't check the...