On Sep 11, 3:06 am, Luis Carvalho <[EMAIL PROTECTED]> wrote: > > :lua print (12 * 36) > > works, but > > :lua print (0 / 0) > > or > > :lua print (99999999 * 99999999) > > crashes Vim > > I couldn't reproduce this behavior, but I don't have Vim compiled with BCC.
When compiled with mingw/gcc 0/0 gives -1.#IND, which is a notation for NaN. (the 99999 case works for me, I just get a large floating point number). I suspect that bcc doesn't handle NaN and Inf properly, and raises a floating point exception. Whether that is untrappable, or could be trapped in the Lua interface code, I don't know, but it looks like it's a bcc-specific fix that's needed, if anything. (Alternatively, are there any bcc compiler flags that could be used to avoid floating point exceptions? Paul. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
