19 Mar
2017
19 Mar
'17
4:53 p.m.
On 19.03.2017 16:56, Pablo Rodriguez wrote:
is there any reason not to use the following instead of your way below?
for i = 1,n do tex.print("(" .. vecteurX[i] .. ", " .. vecteurY[i] .. ")\\par") end
I don't think that this is a good approach. Refer to chapter 11.6 of "Programming in Lua" to see why string concatenation is computationally expensive. (It wouldn't matter in this simple case, but it's not a good habit to develop.) All best Thomas