-
Notifications
You must be signed in to change notification settings - Fork 23
ERROR: syntax: function argument names not unique #86
Comments
@JeffBezanson: There are duplicate slotnames:
Is that expected? |
Isn't that part of the idea of slots? That the same name can refer to different "slots" at different points in the code? |
Yes; the slot numbers are what matter now, and the names are just debug info so they don't have to be unique. |
Ok, but then we need code to determine what the currently active set of slots is and only consider those when printing variables or evaluating expressions. |
We have also encountered this problem at Conning. |
note that those points in the code can have overlapping lifetimes. the distinguishing characteristic is that they have different slot ids. |
Yes, so the question is which one to use when we are asked to the value of variable |
That sounds good. Will probably cover 90% of cases. However I also believe it's orthogonal to this issue, since for example there will often be many variables called |
We can remove |
I'm implementing that solution, but it's not quite satisfying, e.g. for
|
I'm trying to debug the fit function in
Lasso.jl
. When I try to print a local variable in the function I get the error in the title and Gallium terminates. To reproduce the error trythen step into all the default arguments (see #85) and, when in the function body, do
n
untilThe text was updated successfully, but these errors were encountered: