Hi, In a Vim9 script, I am not able to use a script local function in the RHS of an assignment at the script level. But I am able to use it a def function:
---------------------------------------------------------------------------------------------- vim9script func s:F() endfunc def T() var Fn1: func = s:F enddef T() var Fn2: func = s:F ---------------------------------------------------------------------------------------------- If you source the above script, you will get a "E121: Undefined variable: s:F" error message at line 10. This works if you remove the "s:" prefix. - Yegappan -- -- 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/CAAW7x7k8eCsE0YZjx3PLwT_EoMikNJtmd%3Db3nBx4%2B7nrn51h8w%40mail.gmail.com.
