How do I run plife.jl in julia / examples?

I have installed Julia Version 0.3.10-pre + 4 and am trying to run the examples contained in julia / examples, in particular plife.jl

, which seems to be a parallel simulation of Conway's life game. I have an error

julia> include("plife.jl")
plife (generic function with 1 method)

julia> plife(100,100)
ERROR: Window not defined
 in plife at /x/faia/julia/examples/plife.jl:44

      

where the error is caused by the code

function plife(m, n)
    w = Window("parallel life", n, m)
    c = Canvas(w)

      

I searched for a package that defines the Window function but couldn't find one. Does anyone know how to run this sample code?

+3


source to share


1 answer


This example seems to depend on an external package, it looks like it might be Tk.jl, but there have been some renames since then.



It was actually removed in the Julia development branch, but is still delayed in the 0.3 series. I posted a PR to remove it .

+2


source







All Articles