I am having an issue with a macro that I am not managing to solve.
The code is messy, but I will try to make clear the issue.
I have the source code
[here](https://github.com/mantielero/ipopt.nim/tree/master/src). When I compile
this code, the last lines displayed (from expandMacro):
Have you tried writing it
echo repr(`obj_hess`[0])
Run
?
It doesn't work either. But bear in mind that this is a simplification. That
line will get replaced by somethin like:
for row in `obj_hess`:
for item in row:
values[idx] = obj_factor * item
idx += 1
Run
Which is not working.
It is very strange, becaus
Arrays cannot contain arrays of different sizes, you have to use seqs or just a
1 dimensional array that you treat as 2 dimensional. This is because the arrays
`[1]` and `[1, 2]` are different types.