> + *windowsversion()*
> + windowsversion()
> + The result is a String. For MS-Windows it indicates the OS
> + version. E.g, Windows 10 is "10.0", Windows 8 is "6.2",
> + Windows XP is "5.1". For non-MS-Windows systems the result is
> + an empty string.
Hard-coding the OS name in the function name seems
inelegant and not flexible. What if we also need the version
of macOs, etc.?
How about instead a more general function systeminfo()
(any better name?) which returns a dictionary with keys for:
* os name ("Windows", "GNU/Linux", "macOs", …)
* os version (a version number/string, specific to OS)
* possibly other keys e.g. architecture: "x86", "x86_64", ...
Regards
Dominique
--
--
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/CAON-T_g9pex1FeP36_Y%3DoTrvmRdnuGG6f504Kwyw%2BzkoZVMmSA%40mail.gmail.com.