Andy Wokula wrote: > " Vim Parsing Bug > > func! Add2(x1, x2) > return a:x1 + a:x2 > endfunc > > :echo function('Add2')(2,3) > " 5 (ok) > > " Bug: > :echo 1 ? function('Add2')(1,2) : function('Add2')(2,3) > :echo 0 ? function('Add2')(1,2) : function('Add2')(2,3) > > " Error detected while processing D1223.vim: > " line 17: > " E110: Missing ')' > " E15: Invalid expression: (2,3) > " line 18: > " E109: Missing ':' after '?' > " E15: Invalid expression: 0 ? function('Add2')(1,2) : function('Add2')(2,3) > > > Adding parentheses 1 ? (...) : (...) doesn't help.
Strange. I'll add it to the todo list. -- "I simultaneously try to keep my head in the clouds and my feet on the ground. Sometimes it's a stretch, though." -- Larry Wall /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- You received this message from the "vim_dev" 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