Skip to content

weird interaction with readline() #54

Description

@ArbitRandomUser

the following code runs the loop "twice" and "in parallel" when smuggled into a repl

for k in 1:5
    @show k
    readline()
end

the output is as follows

julia> for k in 1:5
           @show k
           readline()
       end
k = 1
julia> for k in 1:5
           @show k
           readline()
       end
k = 1

k = 2

k = 2

k = 3

k = 3

k = 4

k = 4

k = 5

k = 5


julia> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions