Closed GoogleCodeExporter closed 9 years ago
Thanks for the report, I'll take a closer look at this as soon as I have some
more free time.
Could you explain what you mean is wrong with the patch? How are the return
values shifted?
Original comment by kristofer.karlsson@gmail.com
on 20 Jun 2010 at 8:11
well, this is where i got lost, so i reported it to you with an incompete patch
;e)
for code equivalent to this:
function manyreturns()
return 1,2,3
end
a,b,c = manyreturns()
the values of a,b,c are 2,3,nil respectively
Original comment by matej...@gmail.com
on 20 Jun 2010 at 8:34
Thanks! That clarifies it.
Original comment by kristofer.karlsson@gmail.com
on 20 Jun 2010 at 8:41
This issue was closed by revision r236.
Original comment by kristofer.karlsson@gmail.com
on 21 Jun 2010 at 6:50
Fixed in subversion.
Your patch was nearly correct, it just needed some extra fixes in the callJava
method.
See the full diff here:
http://code.google.com/p/kahlua/source/detail?r=236
Fortunately, it seems that the bug only affected __call operations with java
functions and nothing else (which is probably why it wasn't found earlier).
Original comment by kristofer.karlsson@gmail.com
on 21 Jun 2010 at 6:52
Original issue reported on code.google.com by
matej...@gmail.com
on 20 Jun 2010 at 12:57Attachments: