JuliaLang/julia — Issue #466: Julia seems to lose track of references
Author: mjakl
Created: 2012-02-26 12:51:34+00:00
State: open

Consider the example in https://gist.github.com/1916540, when I run it, I get the following output:
Returning: 24.186773244895647
Got: 4627501189117941816

Uncommenting line 31 (clusterError = clusterError) gives the following output:
Returning: 24.186773244895647
Got: 24.186773244895647

It seems that Julia somewhere loses track of the clusterError return value used in line 29.

I've reduced the example in https://gist.github.com/1916540 as much as possible, so the code itself is awkward and not very useful, but captures the problem.

I've tried the example on the provided Mac OS X build (Commit a9647abf93 (2012-02-20 12:10:02))