On 01/23/2011 05:05 AM, Christian Brabandt wrote:
Maybe it is better to use python? It can do long arithmetics and thus one is
able to reliably check whether calculations have exceeded the limit.

Yeah, but wouldn't you also have to take care of overflowing in Python
as well?

Python auto-promotes from int/long storage to basically an infinitely-long-long so you can reasonably do things like

  x = 2 ** 129
  y = 3 ** 128
  z = y - x

and get meaningful results that you can check against machine/vim limits before returning to vim.

-tim


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to