Closed pb-cdunn closed 4 years ago
This table change while iterating has come up before. It's probably a simple fix (and maybe even a real caught bug). Give me a bit.
Oh, wait...Maybe this is already fixed? I just saw cligen v0.9.37 in your trace.
I.e., I think this commit fixed this problem with an explanation in the commit message: https://github.com/c-blake/cligen/commit/0c7a2b9c0f9ceb12d73b424328bc9ccab4efc47b#diff-5cbfc5f8e7ea060286d1849ee868c3de
To elaborate a little, I think it's probably a "bug" in Nim -- at least a think-O -- but never filed an issue on it. I feel like let tmp = result
should allow writing to result
without stomping on the let
. It could also be a bug in how Table
tries to detect modification inside a loop. I just worked around it rather than diving into it.
Anyway, close this issue when you confirm that's your already fixed problem. Thanks.
I think this is already fixed and you aren't replying. So, I am closing.
Yes, that worked.
I've used that before, but now I'm having trouble with it.
But this works fine:
All I changed is
'\0'
to'w'
.So the best I can do is to assign
w
to a different long-option.