Paul Jolly wrote:

> > Turning the number into a message is trivial, while using the string in
> > an "if" statement is not.
> 
> Good point. I was indeed thinking too much from a Go perspective.

People who use Go are crazy, never do what they do!
(just kidding, of course).

> How about returning a triple:
> 
> [8, 1, 1512]?

Why?  What would you use the "1" for?  You can get the minor version
with:
        v:versionlong % 10000

And the major version with:

        v:versionlong / 1000000

But the very common use would be:

        if v:versionlong > 8011522
          " Use the user friendly popup_notification()
        else
          " fall back to annoying :echomsg
        endif

-- 
hundred-and-one symptoms of being an internet addict:
169. You hire a housekeeper for your home page.

 /// Bram Moolenaar -- [email protected] -- 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201906132211.x5DMB6ug028958%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui