Cool, thank you Jameson.

So what is the best choice between these two possibilities :

function removeLine(poly::Poly, index::Int)

    for op = (:a, :b, :x1, :y1, :x2, :y2, :typ)

        @eval splice!($poly.$op, $index)

    end

end


function removeLine2(poly::Poly, index::Int)

    for op = (:a, :b, :x1, :y1, :x2, :y2, :typ)

        splice!(getfield(poly, op), index)

    end

end

Reply via email to