> I am not sure I understood you correctly. Compiler detects Ruby
> version at compile time already (see numerous #ifdefs in if_ruby.c).
> And I do not think there is a point in detecting version at run-time:
> it looks Ruby developers do not care of C code compatibility.
I currently use has('ruby') to check if vim has ruby support compiled
in. With the move from ruby 1.8 to ruby 1.9, this doesn't guarantee
that old ruby code works. I could check the ruby version from ruby of
course by looking at the value of the RUBY_VERSION constant but I
though it would preferable to check the version right from vim, e.g.
with has('ruby19') or has('ruby18') or so. It was just an idea.
--
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