On Thursday, March 27, 2014 07:41:34 AM RecentConvert wrote:
> Not sure how it's suppose to go. As I understood it from the constructors
> documentation<http://docs.julialang.org/en/release-0.2/manual/constructors/>
> *new* was how it was done, not return.

Meaning, the point is that your print("Test 3") prevents the function from 
returning anything:

function f(x)
    val = 2x
    println("This will not return anything")
end

function g(x)
    val = 2x
    println("This will return something")
    val
end

Reply via email to