JuliaDynamics / ResumableFunctions.jl

C# style generators a.k.a. semi-coroutines for Julia.
Other
160 stars 19 forks source link

Functionals that refer to themselves are not supported (because they are not saved to the finite state machine) #77

Closed Krastanov closed 8 months ago

Krastanov commented 11 months ago
julia> struct A
           a::Int
       end;
       @resumable function (fa::A)() return fa.a end

julia> collect(A(1)())
ERROR: UndefVarError: `fa` not defined