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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to