What are you trying to achieve by using the return inside of your let block? Do 
you want to make the let block behave like a local function?

 — John

On Feb 1, 2014, at 11:24 PM, Brian Nguyen <[email protected]> wrote:

> julia> let x=1; for i=1:37; x=2*x; end; return x; end
> 137438953472
> 
> julia> y = let x=1; for i=1:37; x=2*x; end; x; end
> 137438953472
> 
> julia> y = let x=1; for i=1:37; x=2*x; end; return x; end
> ERROR: syntax: misplaced return statement
> How to make let statements with return work inside other expressions?

Reply via email to