Hi guys,

Here is a basic use of eval in vimscript that produces results that I don't
understand.


                    let kk =1000
               echo 'tot is ' . eval(100+400+kk+200)
" result is correct : tot is 1700

                     let kk =1000
                let hi ='10+'
                     echo 'tot is ' . eval( hi . 100+400+kk+200)
" result  is wrong : tot is 1610

Why result is wrong in the second case? 
"hi' and kk values are added , but result should be 1710

Thanks

Juliet
-- 
View this message in context: 
http://old.nabble.com/eval-results-tp26635814p26635814.html
Sent from the Vim - General mailing list archive at Nabble.com.

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to