On Friday, March 7, 2014 8:23:30 AM UTC-8, David Moon wrote: > > In Julia-0.3.0-prerelease-d2d9bd93ed.app on Mac OS X 10.6: > > The following test case was boiled down from a much larger piece of code. > > function f(x) > answer = false > if (x > 10) > anwser = true > end > return answer > end > > does not issue any warnings, and always returns false. Shouldn't it warn > that anwser is defined as a local variable but never read? >
You have a spelling error in your function. You're setting to anwser and return answer.
