Re: [julia-users] Referencing function scope variables from @async blocks

2014-06-04 Thread Menyoung Lee
It seems to localize single variables but not arrays. I could even implement an async that I could interrupt by updating values in a global array. I actually don't know of any sane way to do this, i.e., interrupt a task or an async bloc from the main thread? global x = zeros(1) @async begin

[julia-users] traits and generic programming in julia

2014-02-10 Thread Menyoung Lee
Hi, I'm a new scientific user and Julia is an exciting prospect. I read through the manual on types and methods, but got confused about how I can define a new abstract type (= trait according to some of the literature) abstract AbsType and write methods for it such as function func2(x::AbsTy