Wednesday, May 31, 2023

passing vim9 vars to python3

Hi,

Seeing the legacy vimscript func Test_python3_vars() in src\testdir\test_python3.vim

Can you confirm that in vim9script, those setlines test are no possible to be written in same way to be passed to python3 world ?

func Test_python3_vars()
  let g:foo = 'bac'              -- << -- THE ONLY ONE CAN BE USED in vim9 ?
  let w:abc3 = 'def'            -- << -- NOT POSSIBLE in vim9
  let b:baz = 'bar'               -- << -- NOT POSSIBLE in vim9
  let t:bar = 'jkl'                   -- << -- NOT POSSIBLE in vim9


Beyond a simple variable, is it possible to move a VIM9 class to the python3 world?

Thank you
N i c o l a s

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/9e8fa53c-df9b-4f71-b3ee-01c03aed5e42n%40googlegroups.com.

No comments: