Re: Floating point syntax

2008-06-06 Fir de Conversatie Tony Mechelynck
On 05/06/08 05:05, Bill McCarthy wrote: On Wed 4-Jun-08 3:42pm -0600, Bram Moolenaar wrote: Anyway, here is a patch to accept plain floating point numbers. Goes on top of the previous floating point patch. Give it a try and find out if any of your scripts break. My eval.c is the current

Re: Floating point syntax

2008-06-06 Fir de Conversatie Bram Moolenaar
Tony Mechelynck wrote: On 04/06/08 21:40, Ilya Bobir wrote: [...] If there are no scripts that use two numbers with a dot in between without interleaving spaces then it follows that there are none that have these kind of numbers with an exponent appended. And it means that if the

Re: Floating point syntax

2008-06-06 Fir de Conversatie Ben Schmidt
Bram Moolenaar wrote: Tony Mechelynck wrote: On 04/06/08 21:40, Ilya Bobir wrote: [...] If there are no scripts that use two numbers with a dot in between without interleaving spaces then it follows that there are none that have these kind of numbers with an exponent appended. And it

Re: Floating point syntax

2008-06-06 Fir de Conversatie ThoML
Another corner case that I believe wasn't searched for with the regex is simply 2e32 which is presently valid and almost equivalent to the above If it's supposed to be a float I think it should IMHO be 2.0e32. This format currently isn't supported for integers it seems. BTW I'm glad to see

Re: Floating point syntax

2008-06-05 Fir de Conversatie Bram Moolenaar
Nico Weber wrote: Yes, but most people appear to be OK with the 123.456 syntax. Thus if you want something else, you need to come up with good arguments. I still haven't seen any good arguments why an editor needs floating point numbers at all, other than hey, it can be done

RE: Floating point syntax

2008-06-05 Fir de Conversatie John Beckett
Bill McCarthy wrote: My eval.c is the current release patched by both your latest and John Beckett's fix. You new patch fails with: vim\vimfp patch -b -p 0 -i Brams-may_not_work_with_jb.diff patching file src/eval.c Hunk #1 FAILED at 4799. 1 out of 1 hunk FAILED -- saving rejects to file

Re: Floating point syntax

2008-06-05 Fir de Conversatie Bill McCarthy
On Thu 5-Jun-08 7:35am -0600, John Beckett wrote: Bill McCarthy wrote: My eval.c is the current release patched by both your latest and John Beckett's fix. You new patch fails with: vim\vimfp patch -b -p 0 -i Brams-may_not_work_with_jb.diff patching file src/eval.c Hunk #1 FAILED at 4799.

Floating point syntax

2008-06-04 Fir de Conversatie Ben Schmidt
Hi, folks, The earlier thread where Bram asked for comments on floating point syntax, after quite a few suggestions were made and rejected for compatibility reasons, petered out. However, two proposals were made that I think had merit, and I wonder if people have additional comment on them

Re: Floating point syntax

2008-06-04 Fir de Conversatie Bram Moolenaar
Ben Schmidt wrote: The earlier thread where Bram asked for comments on floating point syntax, after quite a few suggestions were made and rejected for compatibility reasons, petered out. However, two proposals were made that I think had merit, and I wonder if people have additional comment

Re: Floating point syntax

2008-06-04 Fir de Conversatie Ilya Bobir
Bram Moolenaar wrote: [...] The second was a proposal to represent floats as numbers with decimal points but no additional punctuation which was implicit in this report from Ilya Bobir: - I did a search for vim scripts that use concatenation operation between two numbers without

Re: Floating point syntax

2008-06-04 Fir de Conversatie Gary Johnson
On 2008-06-04, Bram Moolenaar [EMAIL PROTECTED] wrote: Ben Schmidt wrote: The second was a proposal to represent floats as numbers with decimal points but no additional punctuation which was implicit in this report from Ilya Bobir: - I did a search for vim scripts that use

Re: Floating point syntax

2008-06-04 Fir de Conversatie Bram Moolenaar
Ilya Bobir wrote: Bram Moolenaar wrote: [...] The second was a proposal to represent floats as numbers with decimal points but no additional punctuation which was implicit in this report from Ilya Bobir: - I did a search for vim scripts that use concatenation operation between

Re: Floating point syntax

2008-06-04 Fir de Conversatie Nico Weber
Yes, but most people appear to be OK with the 123.456 syntax. Thus if you want something else, you need to come up with good arguments. I still haven't seen any good arguments why an editor needs floating point numbers at all, other than hey, it can be done without breaking old scripts

Re: Floating point syntax

2008-06-04 Fir de Conversatie Bill McCarthy
On Wed 4-Jun-08 3:42pm -0600, Bram Moolenaar wrote: Anyway, here is a patch to accept plain floating point numbers. Goes on top of the previous floating point patch. Give it a try and find out if any of your scripts break. My eval.c is the current release patched by both your latest and